leecade / leecade/react-native-swiper

Error build example with android

Open
#474 7 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.