报错,GOOGLE找遍,不知道什么问题。
react-native run-android 93%时报错,如下:
:app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac :app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). D:\xampp1\htdocs\NewProject\android\app\src\main\java\com\newproject\MainApplication.java:19: : Ҳ return BuildConfig.DEBUG; ^ 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/getting-started.html
尝试解决:
1, cd android && gradlew clean cd .. && react-native run-android
2,JAVA_HOME 重装 修改
3,repositories { mavenLocal() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } maven { url 'https://dl.bintray.com/underdark/android/' } }
都没解决。。。