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.

Error for Android Task :react-native-push-notification:compileDebugJavaWithJavac FAILED

See original GitHub issue

Getting 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

  1. run react-native run-android

Describe what you expected to happen:

  1. Error: Task :react-native-push-notification:compileDebugJavaWithJavac FAILED

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
Dallas62commented, Aug 4, 2020

Seems like a lot of these were removed in 1f97855#diff-8ac7b931eb24f7299a39ace1d825572cL39. Not sure if that was a merge commit or what.

No, just a fail 😅

The NPM package is released in 5.0.1.

Sorry for this mistake

1reaction
OzzieOrcacommented, Aug 3, 2020

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

Read more comments on GitHub >

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

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