[Android] Failed to notify project evaluation listener.
See original GitHub issueHi,
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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:7
Top Results From Across the Web
Android Studio - Failed to notify project evaluation listener error
First Step:File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run. Second step: Press Invalidate/Restart ...
Read more >"Failed to notify project evaluation listener" when upgrading to ...
A problem occurred configuring project ':chegg-sdk'. Failed to notify project evaluation listener. com.android.build.gradle.tasks.
Read more >Gradle upgrade from v4.7 to v7.3.3 gives "Failed to notify ...
Failed to notify project evaluation listener. > org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.
Read more >Failed to notify project evaluation listener kotlin 1.2.60
I have an android gradle project. Trying to use the new kotlin: 1.2.60. Android gradle plugin: 3.2.0-beta5 (also tried to use 3.1.0)
Read more >Android build failed with Failed to notify project evaluation ...
> Failed to notify project evaluation listener. > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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