Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Build on Windows fails #187

Open
demortes opened this issue Mar 8, 2018 · 1 comment
Open

Build on Windows fails #187

demortes opened this issue Mar 8, 2018 · 1 comment

Comments

@demortes
Copy link

demortes commented Mar 8, 2018

Having cloned the master branch, fresh install of react-native, I was unable to cleanly compile the application.

PS E:\Development\boostnote-mobile> react-native.cmd run-android
Scanning 704 folders for symlinks in E:\Development\boostnote-mobile\node_modules (61ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Download https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.1.0/gradle-core-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/builder/2.1.0/builder-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/lint/lint/25.1.0/lint-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/gradle-api/2.1.0/gradle-api-2.1.0.pom
Download https://jcenter.bintray.com/com/android/databinding/compilerCommon/2.1.0/compilerCommon-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/builder-model/2.1.0/builder-model-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/builder-test-api/2.1.0/builder-test-api-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/sdklib/25.1.0/sdklib-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/sdk-common/25.1.0/sdk-common-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/common/25.1.0/common-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/manifest-merger/25.1.0/manifest-merger-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/25.1.0/ddmlib-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/lint/lint-checks/25.1.0/lint-checks-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/annotations/25.1.0/annotations-25.1.0.pom
Download https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.1.0/baseLibrary-2.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/25.1.0/layoutlib-api-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/dvlib/25.1.0/dvlib-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/repository/25.1.0/repository-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.1.0/lint-api-25.1.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/gradle/2.1.0/gradle-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.1.0/gradle-core-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/builder/2.1.0/builder-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/lint/lint/25.1.0/lint-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/gradle-api/2.1.0/gradle-api-2.1.0.jar
Download https://jcenter.bintray.com/com/android/databinding/compilerCommon/2.1.0/compilerCommon-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/builder-model/2.1.0/builder-model-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/builder-test-api/2.1.0/builder-test-api-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/sdklib/25.1.0/sdklib-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/sdk-common/25.1.0/sdk-common-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/common/25.1.0/common-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/manifest-merger/25.1.0/manifest-merger-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/25.1.0/ddmlib-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/lint/lint-checks/25.1.0/lint-checks-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/annotations/25.1.0/annotations-25.1.0.jar
Download https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jar
Download https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.1.0/baseLibrary-2.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/25.1.0/layoutlib-api-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/dvlib/25.1.0/dvlib-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/repository/25.1.0/repository-25.1.0.jar
Download https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.1.0/lint-api-25.1.0.jar
Download https://jcenter.bintray.com/com/facebook/fresco/fresco/1.0.1/fresco-1.0.1.pom
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-okhttp3/1.0.1/imagepipeline-okhttp3-1.0.1.pom
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.4.1/okhttp-3.4.1.pom
Download https://jcenter.bintray.com/com/squareup/okhttp3/parent/3.4.1/parent-3.4.1.pom
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-urlconnection/3.4.1/okhttp-urlconnection-3.4.1.pom
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-ws/3.4.1/okhttp-ws-3.4.1.pom
Download https://jcenter.bintray.com/com/squareup/okio/okio/1.9.0/okio-1.9.0.pom
Download https://jcenter.bintray.com/com/squareup/okio/okio-parent/1.9.0/okio-parent-1.9.0.pom
Download https://jcenter.bintray.com/com/facebook/fresco/drawee/1.0.1/drawee-1.0.1.pom
Download https://jcenter.bintray.com/com/facebook/fresco/fbcore/1.0.1/fbcore-1.0.1.pom
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline/1.0.1/imagepipeline-1.0.1.pom
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-base/1.0.1/imagepipeline-base-1.0.1.pom
Download https://jcenter.bintray.com/com/facebook/fresco/fbcore/1.0.1/fbcore-1.0.1.aar
Download https://jcenter.bintray.com/com/facebook/fresco/drawee/1.0.1/drawee-1.0.1.aar
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-base/1.0.1/imagepipeline-base-1.0.1.aar
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline/1.0.1/imagepipeline-1.0.1.aar
Download https://jcenter.bintray.com/com/facebook/fresco/fresco/1.0.1/fresco-1.0.1.aar
Download https://jcenter.bintray.com/com/squareup/okio/okio/1.9.0/okio-1.9.0.jar
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.4.1/okhttp-3.4.1.jar
Download https://jcenter.bintray.com/com/facebook/fresco/imagepipeline-okhttp3/1.0.1/imagepipeline-okhttp3-1.0.1.aar
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-urlconnection/3.4.1/okhttp-urlconnection-3.4.1.jar
Download https://jcenter.bintray.com/com/squareup/okhttp3/okhttp-ws/3.4.1/okhttp-ws-3.4.1.jar
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:react-native-code-push:preBuild UP-TO-DATE
:react-native-code-push:preReleaseBuild UP-TO-DATE
:react-native-code-push:checkReleaseManifest
:react-native-code-push:preDebugAndroidTestBuild UP-TO-DATE
:react-native-code-push:preDebugBuild UP-TO-DATE
:react-native-code-push:preDebugUnitTestBuild UP-TO-DATE
:react-native-code-push:preReleaseUnitTestBuild UP-TO-DATE
:react-native-code-push:prepareComAndroidSupportAppcompatV72301Library
:react-native-code-push:prepareComAndroidSupportSupportV42301Library
:react-native-code-push:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-code-push:prepareComFacebookFrescoDrawee101Library
:react-native-code-push:prepareComFacebookFrescoFbcore101Library
:react-native-code-push:prepareComFacebookFrescoFresco101Library
:react-native-code-push:prepareComFacebookFrescoImagepipeline101Library
:react-native-code-push:prepareComFacebookFrescoImagepipelineBase101Library
:react-native-code-push:prepareComFacebookFrescoImagepipelineOkhttp3101Library
:react-native-code-push:prepareComFacebookReactReactNative0440Library
:react-native-code-push:prepareComFacebookSoloaderSoloader010Library
:react-native-code-push:prepareOrgWebkitAndroidJscR174650Library
:react-native-code-push:prepareReleaseDependencies
:react-native-code-push:compileReleaseAidl
:react-native-code-push:compileReleaseNdk UP-TO-DATE
:react-native-code-push:compileLint
:react-native-code-push:copyReleaseLint UP-TO-DATE
:react-native-code-push:compileReleaseRenderscript
:react-native-code-push:generateReleaseBuildConfig
:react-native-code-push:generateReleaseResValues
:react-native-code-push:generateReleaseResources
:react-native-code-push:mergeReleaseResources
:react-native-code-push:processReleaseManifest
:react-native-code-push:processReleaseResources
:react-native-code-push:generateReleaseSources
:react-native-code-push:incrementalReleaseJavaCompilationSafeguard
:react-native-code-push:compileReleaseJavaWithJavac
:react-native-code-push:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:react-native-code-push:extractReleaseAnnotations
:react-native-code-push:mergeReleaseShaders
:react-native-code-push:compileReleaseShaders
:react-native-code-push:generateReleaseAssets
:react-native-code-push:mergeReleaseAssets
:react-native-code-push:mergeReleaseProguardFiles
:react-native-code-push:packageReleaseRenderscript UP-TO-DATE
:react-native-code-push:packageReleaseResources
:react-native-code-push:processReleaseJavaRes UP-TO-DATE
:react-native-code-push:transformResourcesWithMergeJavaResForRelease
:react-native-code-push:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-code-push:mergeReleaseJniLibFolders
:react-native-code-push:transformNative_libsWithMergeJniLibsForRelease
:react-native-code-push:transformNative_libsWithSyncJniLibsForRelease
:react-native-code-push:bundleRelease
:react-native-device-info:preBuild UP-TO-DATE
:react-native-device-info:preReleaseBuild UP-TO-DATE
:react-native-device-info:checkReleaseManifest
:react-native-device-info:preDebugAndroidTestBuild UP-TO-DATE
:react-native-device-info:preDebugBuild UP-TO-DATE
:react-native-device-info:preDebugUnitTestBuild UP-TO-DATE
:react-native-device-info:preReleaseUnitTestBuild UP-TO-DATE
:react-native-device-info:prepareComAndroidSupportAppcompatV72301Library
:react-native-device-info:prepareComAndroidSupportSupportCompat2520Library
:react-native-device-info:prepareComAndroidSupportSupportCoreUi2520Library
:react-native-device-info:prepareComAndroidSupportSupportCoreUtils2520Library
:react-native-device-info:prepareComAndroidSupportSupportFragment2520Library
:react-native-device-info:prepareComAndroidSupportSupportMediaCompat2520Library
:react-native-device-info:prepareComAndroidSupportSupportV42520Library
:react-native-device-info:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-device-info:prepareComFacebookFrescoDrawee101Library
:react-native-device-info:prepareComFacebookFrescoFbcore101Library
:react-native-device-info:prepareComFacebookFrescoFresco101Library
:react-native-device-info:prepareComFacebookFrescoImagepipeline101Library
:react-native-device-info:prepareComFacebookFrescoImagepipelineBase101Library
:react-native-device-info:prepareComFacebookFrescoImagepipelineOkhttp3101Library
:react-native-device-info:prepareComFacebookReactReactNative0440Library
:react-native-device-info:prepareComFacebookSoloaderSoloader010Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBase1104Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBasement1104Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesGcm1104Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesIid1104Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesTasks1104Library
:react-native-device-info:prepareOrgWebkitAndroidJscR174650Library
:react-native-device-info:prepareReleaseDependencies
:react-native-device-info:compileReleaseAidl
:react-native-device-info:compileReleaseNdk UP-TO-DATE
:react-native-device-info:compileLint
:react-native-device-info:copyReleaseLint UP-TO-DATE
:react-native-device-info:compileReleaseRenderscript
:react-native-device-info:generateReleaseBuildConfig
:react-native-device-info:generateReleaseResValues
:react-native-device-info:generateReleaseResources
:react-native-device-info:mergeReleaseResources
:react-native-device-info:processReleaseManifest
:react-native-device-info:processReleaseResources
:react-native-device-info:generateReleaseSources
:react-native-device-info:incrementalReleaseJavaCompilationSafeguard
:react-native-device-info:compileReleaseJavaWithJavac
:react-native-device-info:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: E:\Development\boostnote-mobile\node_modules\react-native-device-info\android\src\main\java\com\learnium\RNDeviceInfo\RNDeviceModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:react-native-device-info:extractReleaseAnnotations
:react-native-device-info:mergeReleaseShaders
:react-native-device-info:compileReleaseShaders
:react-native-device-info:generateReleaseAssets
:react-native-device-info:mergeReleaseAssets
:react-native-device-info:mergeReleaseProguardFiles
:react-native-device-info:packageReleaseRenderscript UP-TO-DATE
:react-native-device-info:packageReleaseResources
:react-native-device-info:processReleaseJavaRes UP-TO-DATE
:react-native-device-info:transformResourcesWithMergeJavaResForRelease
:react-native-device-info:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-device-info:mergeReleaseJniLibFolders
:react-native-device-info:transformNative_libsWithMergeJniLibsForRelease
:react-native-device-info:transformNative_libsWithSyncJniLibsForRelease
:react-native-device-info:bundleRelease
:react-native-fetch-blob:preBuild UP-TO-DATE
:react-native-fetch-blob:preReleaseBuild UP-TO-DATE
:react-native-fetch-blob:checkReleaseManifest
:react-native-fetch-blob:preDebugAndroidTestBuild UP-TO-DATE
:react-native-fetch-blob:preDebugBuild UP-TO-DATE
:react-native-fetch-blob:preDebugUnitTestBuild UP-TO-DATE
:react-native-fetch-blob:preReleaseUnitTestBuild UP-TO-DATE
:react-native-fetch-blob:prepareComAndroidSupportAppcompatV72301Library
:react-native-fetch-blob:prepareComAndroidSupportSupportV42301Library
:react-native-fetch-blob:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-fetch-blob:prepareComFacebookFrescoDrawee101Library
:react-native-fetch-blob:prepareComFacebookFrescoFbcore101Library
:react-native-fetch-blob:prepareComFacebookFrescoFresco101Library
:react-native-fetch-blob:prepareComFacebookFrescoImagepipeline101Library
:react-native-fetch-blob:prepareComFacebookFrescoImagepipelineBase101Library
:react-native-fetch-blob:prepareComFacebookFrescoImagepipelineOkhttp3101Library
:react-native-fetch-blob:prepareComFacebookReactReactNative0440Library
:react-native-fetch-blob:prepareComFacebookSoloaderSoloader010Library
:react-native-fetch-blob:prepareOrgWebkitAndroidJscR174650Library
:react-native-fetch-blob:prepareReleaseDependencies
:react-native-fetch-blob:compileReleaseAidl
:react-native-fetch-blob:compileReleaseNdk UP-TO-DATE
:react-native-fetch-blob:compileLint
:react-native-fetch-blob:copyReleaseLint UP-TO-DATE
:react-native-fetch-blob:compileReleaseRenderscript
:react-native-fetch-blob:generateReleaseBuildConfig
:react-native-fetch-blob:generateReleaseResValues
:react-native-fetch-blob:generateReleaseResources
:react-native-fetch-blob:mergeReleaseResources
:react-native-fetch-blob:processReleaseManifest
:react-native-fetch-blob:processReleaseResources
:react-native-fetch-blob:generateReleaseSources
:react-native-fetch-blob:incrementalReleaseJavaCompilationSafeguard
:react-native-fetch-blob:compileReleaseJavaWithJavac
:react-native-fetch-blob:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:react-native-fetch-blob:extractReleaseAnnotations
:react-native-fetch-blob:mergeReleaseShaders
:react-native-fetch-blob:compileReleaseShaders
:react-native-fetch-blob:generateReleaseAssets
:react-native-fetch-blob:mergeReleaseAssets
:react-native-fetch-blob:mergeReleaseProguardFiles
:react-native-fetch-blob:packageReleaseRenderscript UP-TO-DATE
:react-native-fetch-blob:packageReleaseResources
:react-native-fetch-blob:processReleaseJavaRes UP-TO-DATE
:react-native-fetch-blob:transformResourcesWithMergeJavaResForRelease
:react-native-fetch-blob:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-fetch-blob:mergeReleaseJniLibFolders
:react-native-fetch-blob:transformNative_libsWithMergeJniLibsForRelease
:react-native-fetch-blob:transformNative_libsWithSyncJniLibsForRelease
:react-native-fetch-blob:bundleRelease
:react-native-svg:preBuild UP-TO-DATE
:react-native-svg:preReleaseBuild UP-TO-DATE
:react-native-svg:checkReleaseManifest
:react-native-svg:preDebugAndroidTestBuild UP-TO-DATE
:react-native-svg:preDebugBuild UP-TO-DATE
:react-native-svg:preDebugUnitTestBuild UP-TO-DATE
:react-native-svg:preReleaseUnitTestBuild UP-TO-DATE
:react-native-svg:prepareComAndroidSupportAppcompatV72301Library
:react-native-svg:prepareComAndroidSupportSupportV42301Library
:react-native-svg:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-svg:prepareComFacebookFrescoDrawee101Library
:react-native-svg:prepareComFacebookFrescoFbcore101Library
:react-native-svg:prepareComFacebookFrescoFresco101Library
:react-native-svg:prepareComFacebookFrescoImagepipeline101Library
:react-native-svg:prepareComFacebookFrescoImagepipelineBase101Library
:react-native-svg:prepareComFacebookFrescoImagepipelineOkhttp3101Library
:react-native-svg:prepareComFacebookReactReactNative0440Library
:react-native-svg:prepareComFacebookSoloaderSoloader010Library
:react-native-svg:prepareOrgWebkitAndroidJscR174650Library
:react-native-svg:prepareReleaseDependencies
:react-native-svg:compileReleaseAidl
:react-native-svg:compileReleaseNdk UP-TO-DATE
:react-native-svg:compileLint
:react-native-svg:copyReleaseLint UP-TO-DATE
:react-native-svg:compileReleaseRenderscript
:react-native-svg:generateReleaseBuildConfig
:react-native-svg:generateReleaseResValues
:react-native-svg:generateReleaseResources
:react-native-svg:mergeReleaseResources
:react-native-svg:processReleaseManifest
:react-native-svg:processReleaseResources
:react-native-svg:generateReleaseSources
:react-native-svg:incrementalReleaseJavaCompilationSafeguard
:react-native-svg:compileReleaseJavaWithJavac
:react-native-svg:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
E:\Development\boostnote-mobile\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgViewManager.java:31: error: <anonymous com.horcrux.svg.SvgViewManager$1> is not abstract and does not override abstract method measure(YogaNodeAPI,float,YogaMeasureMode,float,YogaMeasureMode) in YogaMeasureFunction
    private static final YogaMeasureFunction MEASURE_FUNCTION = new YogaMeasureFunction() {
                                                                                          ^
E:\Development\boostnote-mobile\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgViewManager.java:32: error: method does not override or implement a method from a supertype
        @Override
        ^
2 errors
:react-native-svg:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-svg:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2 mins 22.067 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
@SailHe
Copy link

SailHe commented Mar 6, 2019

E:\Development\boostnote-mobile\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\SvgViewManager.java

"YogaNode node," to "YogaNodeAPI node," in line 34
and "import com.facebook.yoga.YogaNodeAPI;"

I don't guarantee that this will work. Initially my error was similar to yours, but I compiled it many times later, and other errors occurred, changing a lot of things, including but not limited to: running with administrator privileges; re-downloading dependencies; Re-pull the project. . .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants