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.

Failed to notify project evaluation listener

See original GitHub issue

Description

I trying to first run an react-native app with react-native run-android.

Expected Behavior

I expect it to work, like it does when I call react-native run-ios

Observed Behavior

react-native run-android
Scanning folders for symlinks in /Users/tiagogouvea/www/go-along/mobile/node_modules (12ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.gradle.internal.reflect.JavaMethod (file:/Users/tiagogouvea/.gradle/wrapper/dists/gradle-4.0-milestone-1-all/2rnr7rhi2zsmkxo9re7615fy6/gradle-4.0-milestone-1/lib/gradle-base-services-4.0.jar) to method java.lang.ClassLoader.getPackages()
WARNING: Please consider reporting this to the maintainers of org.gradle.internal.reflect.JavaMethod
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Users/tiagogouvea/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > javax/xml/bind/annotation/XmlSchema

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

BUILD FAILED in 4s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: empty
  • npm ls react-native: react-native@0.50.3
  • npm ls expo: empty
  • node -v: v8.0.0
  • npm -v: 5.5.1
  • yarn --version: 1.2.1
  • watchman version: 4.9.0
  1. Operating system: macOs 10.12.6
  2. Phone/emulator/simulator & version: Genymotion image

Reproducible Demo

To validate it I started a clean project with react-native init goalong and try to run it with react-native run-android.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

36reactions
shan-ducommented, Nov 21, 2017

EDIT: it’s likely the JDK version you have (java -version) You need to use JDK 8, v9 does NOT work

27reactions
cparjaszewskicommented, Apr 4, 2018

Why JDK v9 doesn’t work? Java 10 is ahead of us, shouldn’t we use the newest possible version all the time and this ticket should be closed when it’s done?

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 ...
In AndroidStudio 3.0.1 When I try to do Gradle Sync I get this error: "Error:Unable to find method '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 >
Failed to notify project evaluation listener. - ForgeGradle
I'm trying to make a mod in minecraft in eclipse. The version is 1.19 but i have this problem when i do gradle...
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