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 build example with android

See original GitHub issue
/home/exos/test/react-native-swiper/examples/node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/PhotoView.java:23: error: cannot find symbol
import com.facebook.react.modules.fresco.ReactNetworkImageRequest;
                                        ^
  symbol:   class ReactNetworkImageRequest
  location: package com.facebook.react.modules.fresco
/home/exos/test/react-native-swiper/examples/node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/PhotoView.java:154: error: cannot find symbol
        ImageRequest imageRequest = ReactNetworkImageRequest
                                    ^
  symbol:   variable ReactNetworkImageRequest
  location: class PhotoView
Note: /home/exos/test/react-native-swiper/examples/node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/ResourceDrawableIdHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:react-native-photo-view:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-photo-view: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: 9.119 secs
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/android-setup.html

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
chug2kcommented, Jul 27, 2017

Ah, someone has a dependency on react-native-photo-view: https://github.com/alwx/react-native-photo-view/issues/68. Force using version 1.2 and you should be okay.

1reaction
Lowisoftcommented, Jul 26, 2017

me too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues with Android Studio and Android Gradle Plugin
Find out about current known issues with Android Studio and the Android Gradle Plugin.
Read more >
android studio - Build error when trying to Run basic activity
1 Answer 1 · Update your Kotlin version from "1.5.10" to the latest "1.5. · If that doesn't work, you can manually add...
Read more >
Android build example app occur bazel not found the package
java:20: error: package com.android.dx.command.dexer does not exist import com.android.dx.command.dexer.DxContext; ^ external/bazel_tools/src/ ...
Read more >
Dealing With Problems With Building the App & Detox
A failure occurred while executing com.android.build.gradle.internal.res. ... an exclusion to either the "other" dependencies or detox itself, for example:.
Read more >
How to fix all build errors in react native(Android specific).
Basically, what this error is trying to tell you is that this particular package does not support the Gradle version you are using...
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