Last active
March 13, 2018 18:33
-
-
Save gauravgrover95/43b619994c75519593022c93204f636e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------- | |
BUILD SYSTEM | |
----------------------- | |
System: MacOS High Sierra 10.13.1 | |
Android Version: 7.1.2 | |
react-native-cli version: 2.0.1 | |
react-native version: 0.54.2 | |
react-native-camera: 1.0.2 [https://github.com/react-native-community/react-native-camera] | |
----------------------- | |
STEPS TO REPRODUCE | |
----------------------- | |
1. $ react-native init "camTest" | |
2. $ cd camTest | |
3. -> Connect your android device with USB debugging on. I read somewhere in the documentation of react-native-camera module that it does not work on emulator | |
4. [Optional] $ react-native run-android | |
=> Just to test if everything is working fine | |
5. $ npm install react-native-camera | |
6. $ react-native link react-native-camera | |
7. $ react-native run-android | |
=> Building the project again after linking the library | |
------------------------------- | |
SERVER ERROR ENCOUNTERED | |
------------------------------- | |
" " " | |
Scanning folders for symlinks in /Users/gauravgrover/Projects/hl/camTest/node_modules (12ms) | |
JS server already running. | |
Building and installing the app on the device (cd android && ./gradlew installDebug)... | |
Incremental java compilation is an incubating feature. | |
File /Users/gauravgrover/.android/repositories.cfg could not be loaded. | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
A problem occurred configuring project ':app'. | |
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'. | |
> Could not find com.github.react-native-community:cameraview:cc47bb28ed2fc54a8c56a4ce9ce53edd1f0af3a5. | |
Required by: | |
camTest:app:unspecified > camTest:react-native-camera:unspecified | |
* 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: 30.163 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/getting-started.html | |
" " " | |
------------------------------- | |
SOME MORE INFO | |
------------------------------- | |
=> I have also tried the manual installation procedure. Still I am encountering one or the other issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment