When running the android app in react native i'm geeting this error
Execution failed for task ':react-native-contacts:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that C:\\Program Files\\Java\\New folder contains a valid JDK installation.
I have also checked the java version it is installted. My java version is 1.8.0_151.
将org.gradle.java.home=C:\\\\Program Files\\\\Java\\\\jdk1.8.0_144
路径org.gradle.java.home=C:\\\\Program Files\\\\Java\\\\jdk1.8.0_144
到gradle.properties
文件,然后在您的项目根目录中运行此命令行
cd android && gradlew clean && cd .. && react-native run-android
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.