0
我想与我的Android React本机应用程序使用Auth0锁。我也跟着安装说明here,但我在建筑出现以下错误:构建失败与Autact0锁在React本机Android
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find any matches for com.auth0.android:lock-react-native:+ as no versions of com.auth0.android:lock-react-native are available.
Searched in the following locations:
file:/Users/m/.m2/repository/com/auth0/android/lock-react-native/maven-metadata.xml
file:/Users/m/.m2/repository/com/auth0/android/lock-react-native/
https://jcenter.bintray.com/com/auth0/android/lock-react-native/maven-metadata.xml
https://jcenter.bintray.com/com/auth0/android/lock-react-native/
file:/Users/m/git/this-or-that-app/node_modules/react-native/android/com/auth0/android/lock-react-native/maven-metadata.xml
file:/Users/m/git/this-or-that-app/node_modules/react-native/android/com/auth0/android/lock-react-native/
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/auth0/android/lock-react-native/maven-metadata.xml
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/auth0/android/lock-react-native/
Required by:
thisOrThatApp:app: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: 16.332 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
我注意到这些线:
file:/Users/m/git/this-or-that-app/node_modules/react-native/android/com/auth0/android/lock-react-native/maven-metadata.xml
file:/Users/m/git/this-or-that-app/node_modules/react-native/android/com/auth0/android/lock-react-native/
我有一种预感,从本应安装在合适的位置是node_modules文件夹,但gradle在react-native-lock-android内部查看react-native模块时正在寻找内部。这可能是一个gradle配置的问题。有关如何解决此问题的任何提示?