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:
- Created 6 years ago
- Reactions:3
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
me too