简体   繁体   中英

React Native: Error while running the android app

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_144gradle.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM