React-native-vector-icons: [Android] Failed to notify project evaluation listener.

Created on 10 Apr 2018  路  7Comments  路  Source: oblador/react-native-vector-icons

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.

  • 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-vector-icons'. > 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. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 0s

anyone know how to fix

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

All 7 comments

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

https://stackoverflow.com/a/46959064/4642316

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peacechen picture peacechen  路  3Comments

mahdidavoodi7 picture mahdidavoodi7  路  3Comments

AbhayVarshney picture AbhayVarshney  路  3Comments

venux92 picture venux92  路  3Comments

lossen picture lossen  路  4Comments