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.

Build error on RN 0.47.0-rc.3 (Android)

See original GitHub issue

Description

I’ve upgraded my project to React 0.47.0-rc.3 and, with react-native-image-picker as a dependency it broke Android builds. Build error log:

:react-native-image-picker:generateReleaseSources UP-TO-DATE
:react-native-image-picker:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:react-native-image-picker:compileReleaseJavaWithJavac
:react-native-image-picker:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/michael/code/exp/Example/node_modules/react-native-image-picker/android/src/main/java/com/imagepicker/ImagePickerPackage.java:34: error: method does not override or implement a method from a supertype
  @Override
  ^
1 error
:react-native-image-picker:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker:compileReleaseJavaWithJavac'.

How to repeat issue and example

react-native init Example --version 0.47.0-rc.3 && cd Example yarn add react-native-image-picker react-native run-android

Solution

I guess, this issue (#307) could be somehow related to this, as the build error look the same.

Additional Information

  • React Native version: 0.47.0-rc.3
  • Platform: Android
  • Development Operating System: MacOS Sierra 10.12.5
  • Dev tools: Android SDK 23

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
leethreecommented, Aug 7, 2017

Is there any contributor available to take a look at the PRs?

4reactions
rroehrigcommented, Aug 2, 2017

I still face this problem with the released version 0.47.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error on RN 0.47.0-rc.3 (Android) #641 - GitHub
Description I've upgraded my project to React 0.47.0-rc.3 and, with react-native-image-picker as a dependency it broke Android builds.
Read more >
React Native Android build failure with different errors without ...
The build failures for Android was due to the publish of the React Native version 0.71.0-rc0 . Note: Error may be different but...
Read more >
react-native-device-info | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
react-native-device-info/README.md - UNPKG
46, > ⚠️ If you are on React Native > 0.47, you must use version 0.11.0 of this ... similar to this in...
Read more >
react-native-svg - NPM Package Overview - Socket.dev
yarn add react-native-svg In RN 0.60+, this is all you should ever ... If you have build errors, then it might be caused...
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