You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build an Android app using the latest version on npm (tag @next)
Here's what I did:
$ yarn add react-native-region-monitor@next
$ react-native link
$ react-native run-android
Here is the error:
Scanning 571 folders for symlinks in /[...]/RNLocationTest/node_modules (8ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> Configuration with name 'default' not found.
* 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: 2.074 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
Previous version builds, but doesn't work because the Android code was not implemented yet.
It looks like you don't have react-native installed as a NPM dependency or you don't have RN correctly included in your gradle file. Maybe RN link command didn't work well..
compile "com.facebook.react:react-native:+" // From node_modules
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
I'm trying to build an Android app using the latest version on npm (tag @next)
Here's what I did:
Here is the error:
Previous version builds, but doesn't work because the Android code was not implemented yet.
This is my react-native version:
The text was updated successfully, but these errors were encountered: