Hi,
the project was working fine, but when i updated the gradle. i got this error.
$ ./gradlew clean
Configure project :react-native-vector-icons
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.
anyone know how to fix
Yes, I faced this issue too, does anyone know how to fix this? Thanks
In my case, I changed the Gradle version under /android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-rc-2-all.zip
to solve a different issue with Java. And when I ran the build, this error occured.
So I tried to resolve the Java version with a different approach, and switch the Gradle version back:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Now it works fine.
So you may need to check the Gradle version, I guess.
Any solutions without having to use an older gradle version?
i have same issue :( why
before i added sample directore ( then ctrl+z ) then i added package and add activity in new package
after this i got it issue :(
@baeteja This answer resolved my problem
I've resolved this issue by cleaning all the Gradle cache, stoping the Gradle Daemon process, and created a new build successfully using the following command. Make sure your current directory is android.
rm -rf ~/.gradle/caches && ./gradlew --stop && ./gradlew cleanBuildCache && ./gradlew bundleRelease
This was one of the top search results, so just going to add that my problem was that I was using a newer JVM with a project that needed Java 1.8
Most helpful comment
In my case, I changed the Gradle version under /android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-rc-2-all.zipto solve a different issue with Java. And when I ran the build, this error occured.
So I tried to resolve the Java version with a different approach, and switch the Gradle version back:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zipNow it works fine.
So you may need to check the Gradle version, I guess.