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.

Execution failed for Task :@react-native-community_netinfo:compileDebugJavaWithJavac FAILED'. React-native

See original GitHub issue

Environment

Platforms

Versions

  • Android:
  • iOS:
  • react-native-netinfo:
  • react-native:
  • react:

Description

My react native project fails to build app and gives this error:

Task :@react-native-community_netinfo:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ‘:@react-native-community_netinfo:compileDebugJavaWithJavac’. > Compilation failed; see the compiler error output for details. 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 3s 10 actionable tasks: 1 executed, 9 up-to-date error 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 error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details. npm ERR! code ELIFECYCLE npm ERR! errno 1

Reproducible Demo

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SaiTejaShashankcommented, Nov 25, 2022

Ok @trinhnguyen81 I will try that and update you the output.

1reaction
SaiTejaShashankcommented, Nov 24, 2022

On Thu, 24 Nov 2022 at 7:55 PM trinhnguyen81 @.***> wrote:

same issue 😦 [image: Screen Shot 2022-11-24 at 21 25 17] https://user-images.githubusercontent.com/76992888/203807481-e7d14962-4c13-4f97-8e96-0b413661070c.png

— Reply to this email directly, view it on GitHub https://github.com/react-native-netinfo/react-native-netinfo/issues/644#issuecomment-1326521984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGO3LJVVDSIPRTN7WZFZR3WJ53F5ANCNFSM6AAAAAASI5RZPY . You are receiving this because you authored the thread.Message ID: @.*** com>

Hi ,

I am trying to debug this error since 2 days. Couldnot able to succeed. Please notify me if you find the solution. I will inform you if I found the bug.

Ping me through linkedin

https://www.linkedin.com/in/punna-sai-teja-shashank-7608b4194

Thanks Sai Teja Shashank

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':react-native-reanimated:unzipHermes'.
While building the app on android it is failing with What went wrong: Execution failed for task ':react-native-reanimated:...
Read more >
React Native: Execution failed for task - Stack Overflow
Open the /android/app/build.gradle file. Under dependencies we need to add the module, and then enable it within defaultConfig android { ...
Read more >
Troubleshooting - React Native
If you encounter a ShellCommandUnresponsiveException exception such as: Execution failed for task ':app:installDebug'.
Read more >
Task :app:transformDexArchiveWithDexMergerForDebug ...
By React Native Debugger. If your methods + your dependencies method greater then 64k+ methods then your react native throwing DexMerger error.
Read more >
react-native-svg - npm
SVG library for react-native. Latest version: 13.6.0, last published: a month ago. Start using react-native-svg in your project by running ...
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