leecade / leecade/react-native-swiper
Error build example with android
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
/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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Android build failure in the examples project and inspect node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/PhotoView.java, where ReactNetworkImageRequest is missing. Trace the React Native and photo-view versions involved, then verify that the example builds and installs successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, javascript, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100