React-native-swiper: Error build example with android

Created on 19 Jul 2017  路  7Comments  路  Source: leecade/react-native-swiper

/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

Most helpful comment

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.

All 7 comments

me too

same here.

BTW this happens even when I install the package directly (this is my package.json after all):

{ "name": "examples", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start", "watch": "node ./scripts/watch-and-copy-src.js", "packager": "sh ./node_modules/react-native/packager/packager.sh --root ./node_modules/react-native-swiper", "dev": "concurrently 'npm run watch' 'npm run packager'" }, "dependencies": { "react": "15.3.2", "react-native": "0.33.0", "react-native-photo-view": "^1.0.1", "react-native-swiper": "^1.5.4" }, "devDependencies": { "concurrently": "^2.2.0", "fs-extra": "^0.30.0", "minimatch": "^3.0.2", "node-watch": "^0.4.0", "rimraf": "^2.5.4" } }

me too

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.

getting same error..any help

getting same error..any help?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gwhite-dayspring picture gwhite-dayspring  路  3Comments

itinance picture itinance  路  3Comments

nomoreboredom picture nomoreboredom  路  3Comments

ruben-kasaz picture ruben-kasaz  路  3Comments

tokict picture tokict  路  3Comments