2

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.

3
  • Do you use react-native-maps ? Commented Aug 29, 2018 at 9:43
  • no i'm just running the app . Commented Aug 29, 2018 at 9:46
  • i download it from github Commented Aug 29, 2018 at 9:46

1 Answer 1

1

add Jdk path org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_144 to gradle.properties file and then run this command line in your projects root

cd android && gradlew clean && cd .. && react-native run-android

Sign up to request clarification or add additional context in comments.

1 Comment

Now i'm getting this error Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.