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.

Android build failed.( ios ok) compileReleaseJavaWithJavac FAILED

See original GitHub issue

hi, first installed package on ios it builds success . but Android it fails:

`:react-native-fast-image:prepareComFacebookFrescoImagepipeline101Library :react-native-fast-image:prepareComFacebookFrescoImagepipelineBase101Library :react-native-fast-image:prepareComFacebookFrescoImagepipelineOkhttp3101Library :react-native-fast-image:prepareComFacebookReactReactNative0451Library :react-native-fast-image:prepareComFacebookSoloaderSoloader010Library :react-native-fast-image:prepareOrgWebkitAndroidJscR174650Library :react-native-fast-image:prepareReleaseDependencies :react-native-fast-image:compileReleaseAidl :react-native-fast-image:compileReleaseNdk UP-TO-DATE :react-native-fast-image:compileLint :react-native-fast-image:copyReleaseLint UP-TO-DATE :react-native-fast-image:compileReleaseRenderscript :react-native-fast-image:generateReleaseBuildConfig :react-native-fast-image:generateReleaseResValues :react-native-fast-image:generateReleaseResources :react-native-fast-image:mergeReleaseResources :react-native-fast-image:processReleaseManifest /…/node_modules/react-native-fast-image/android/src/main/AndroidManifest.xml:11:9-15:15 Warning: meta-data#com.bumptech.glide.integration.okhttp.OkHttpGlideModule was tagged at AndroidManifest.xml:11 to remove other declarations but no other declaration present :react-native-fast-image:processReleaseResources :react-native-fast-image:generateReleaseSources :react-native-fast-image:incrementalReleaseJavaCompilationSafeguard :react-native-fast-image:compileReleaseJavaWithJavac :react-native-fast-image:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). /…/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewPackage.java:14: error: FastImageViewPackage is not abstract and does not override abstract method createJSModules() in ReactPackage public class FastImageViewPackage implements ReactPackage { ^ Note: /…/node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error :react-native-fast-image:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:react-native-fast-image:compileReleaseJavaWithJavac’.

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.

BUILD FAILED

Total time: 8.256 secs`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
DanGDroidcommented, Aug 20, 2017

when i edit node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewPackage.java and add: @Override public List<Class<? extends JavaScriptModule>> createJSModules(){ return Collections.emptyList(); } it runs fine. do you have a permanent fix?

3reactions
isAlmogKcommented, Aug 21, 2017

+1 I’m having the same issue

I already have the following and still getting the issue

@Override
    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Collections.emptyList();
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Task app:compileDebugJavaWithJavac failed - Stack Overflow
When trying to run my react native app on android, I get this error: FAILURE: Build failed with an exception.
Read more >
react-native-reanimated:compiledebugjavawithjavac failed
1 error FAILURE: Build failed with an exception. I tried to npx jetify , clean and rebuild the android project in Android Studio,...
Read more >
App does not build, react-native-reanimated gradle error
Hi everyone When I try to compile my project eas shows this error ... /react-native-reanimated-expo-fix/android/build.gradle' line: 14 ...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Start a new pod with the new Loop app on the reset phone. Pending Certificate Request¶. Error message: "You already have a current...
Read more >
Bitrise - iOS & Android Build Automation - Bitrise
FAILURE : Build failed with an exception. * What went wrong: Execution failed for task ':app:testDebugUnitTest'. > There were failing tests. See the ......
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