Execution failed for task ':app:compileDebugJavaWithJavac'. > Could not find tools.jar

后端 未结 2 1555
别跟我提以往
别跟我提以往 2021-01-14 15:58

I get this error while executing

react-native run-android

I have tried copying tools.jar file to JRE installation location, reinstalled JD

2条回答
  •  孤城傲影
    2021-01-14 16:44

    Add this to gradle.properties:

    org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_91
    

    Don’t forget to use double back slashes. For example:

    org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_144\
    

提交回复
热议问题