question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Failed to notify project evaluation listener.

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:14
  • Comments:7

github_iconTop GitHub Comments

24reactions
tuthanh82commented, May 7, 2018

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.

9reactions
aniruddhashevlecommented, May 22, 2020

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found