Error for Android Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
See original GitHub issueGetting a build error with android only with version 5.0.0
. This works fine on version 4.0.0
.
Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
react-native info
output:
System:
OS: macOS 10.15.5
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 2.16 GB / 32.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.4.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.3 - .../.rvm/gems/ruby-2.7.1/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK: Not Found
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
Languages:
Java: javac 13 - /usr/bin/javac
Python: 2.7.17 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
Library version: 5.0.0
Steps To Reproduce
- run react-native run-android
Describe what you expected to happen:
- Error: Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Execution Failed for task :app:compileDebugJavaWithJavac in ...
In Android Studio 3.1, you can see the errors details in the Build window. Open up Build tab. They are somewhat hidden, you...
Read more >Execution failed for task ':app:mergeDebugNativeLibs'. #35215
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
Read more >Fix "Execution Failed for task :app ... - GeeksforGeeks
* What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
Read more >Managing work | Android Developers
The following example shows how you can find all work with the tag, “syncTag”, that is in the FAILED or CANCELLED state and...
Read more >Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
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
No, just a fail 😅
The NPM package is released in 5.0.1.
Sorry for this mistake
This report doesn’t appear to have the actual error message that made the task fail. With
5.0.0
, I’m getting the following error which might be related to or what the original reporter saw:error: variable userInteraction might not have been initialized
at https://github.com/zo0r/react-native-push-notification/blob/5.0.0/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationAttributes.java#L125