alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
816 stars 434 forks source link

gradle 4.3: The CompileOptions.bootClasspath property has been deprecated #145

Open archywillhe opened 6 years ago

archywillhe commented 6 years ago

Got the following error when I tried to react-native run-android

Scanning folders for symlinks in /Users/a/ArchyBox/lateJan/Archy/node_modules (24ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

> Configure project :react-native-photo-view
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-photo-view'.
      > Failed to notify project evaluation listener.
         > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

I'm running JDK version 9 and gradle-4.3

CodeShaun commented 6 years ago

This post addresses how to resolve the issue: https://stackoverflow.com/questions/47495066/the-compileoptions-bootclasspath-property-has-been-deprecated