Je veux intégrer la notification push à mon projet React Native suivez le guide https://mobile.azure.com/orgs/....../push/setup et quand je lanceImpossible de trouver com.google.firebase: firebase-core: 11.0.0 lorsque j'essaie d'ajouter mobile-center-push à React Native project
react-native run-android
je suis une erreur:
-> % react-native run-android
Scanning 744 folders for symlinks in /Users/kalaliu/temp/RNBase/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
File /Users/kalaliu/.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:_debugApk'.
> A problem occurred configuring project ':mobile-center-push'.
> Could not resolve all dependencies for configuration ':mobile-center-push:_debugPublishCopy'.
> Could not find com.google.firebase:firebase-core:11.0.0.
Required by:
RNBase:mobile-center-push:unspecified > com.microsoft.azure.mobile:mobile-center-push:0.10.0
> Could not find com.google.firebase:firebase-messaging:11.0.0.
Required by:
RNBase:mobile-center-push:unspecified > com.microsoft.azure.mobile:mobile-center-push:0.10.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
il ressemble que j'ai besoin mettre à jour mon Android SDK dans mon projet RN? une idée à ce sujet? ma configuration android
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.rnbase"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0.1"
ndk {
abiFilters "armeabi-v7a"
}
vectorDrawables.useSupportLibrary = true
}
mon package.json
"mobile-center": "^0.6.0",
"mobile-center-analytics": "^0.6.0"
"mobile-center-crashes": "^0.6.0",
"mobile-center-push": "^0.7.0",
"react": "16.0.0-alpha.12",
"react-native": "^0.45.1",
PS: i trouver les conseils Firebase:
je peux mettre à jour mon SDK local et faire cela signifie i devrait mettre à jour mon build.gradle. "compileSdkVersion 23" à l'autre version, est-ce sûr pour React Native? – kala888
Vous devriez lire ceci: https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd –