-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execution failed for task ':app:compileDebugJavaWithJavac'. React Native #21722
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write |
I have provided the environment details which are obtained after running react-native info in the environment section. |
I have the same issue, here are my infos: Environment: Packages: (wanted => installed) I started with a CRNA that I ejected. I also ran a npm install -g react-native-git-upgrade that didn't change anything to the errors messages. The only difference I have is the warning about the compile keyword taht I already replaced with implementation. I can provide my gradle files if you think it could be useful! |
Same Issue here on MacOS: Environment: Packages: (wanted => installed) |
Same issue for me. i ejected my project from CRNA too. OS: Windows 10 EDIT : I changed it to : and run "npm install", and now it works... |
I've been dealing with this issue for a while now, resorted to react-native-init but changing to "react-native": "0.57.5", fixed it for me. Thanks. |
this works for me thanks a lot |
Step 1: Delete node_modules folder. If the above steps fails, then change react-native version to 0.57.5 in package.json file and then repeat the steps 1,2,3. |
This comment has been minimized.
This comment has been minimized.
React Native Environment Info: |
Try migrating to AndroidX and then follow the steps from above. |
Environment
OS: Windows 10
Node: 8.10.0
Yarn: 1.9.4
npm: 6.4.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.1.0.0 AI-173.4819257
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4.
Description
I created a new project with "create-react-native-app" and then ejected it to plain react native project. When i try to run "react-native run-android" command i get build failed with error Execution failed for task ':app:compileDebugJavaWithJavac'.
Reproducible Demo
I executed following commands.
create-react-native-project [projectname]
cd [projectname]
npm run eject
react-native run-android
The result output is as follows.
`F:\react\xdceconverter>react-native run-android
Scanning folders for symlinks in F:\react\xdceconverter\node_modules (118ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
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 41s
18 actionable tasks: 5 executed, 13 up-to-date
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/getting-started.html`
The text was updated successfully, but these errors were encountered: