首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法找到com.google.firebase:firebase-core:11.0.0当我尝试添加移动中心推送以响应本机项目时

无法找到com.google.firebase:firebase-core:11.0.0当我尝试添加移动中心推送以响应本机项目时
EN

Stack Overflow用户
提问于 2017-07-05 10:37:09
回答 2查看 922关注 0票数 1

我希望将推送通知集成到我的React,遵循指南https://mobile.azure.com/orgs/....../push/setup,并在我运行时

代码语言:javascript
复制
react-native run-android

我有个错误:

代码语言:javascript
复制
-> % 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

看起来我需要在RN项目中升级我的android吗?对此有什么想法吗?我的android配置

代码语言:javascript
复制
 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
    }

我的package.json

代码语言:javascript
复制
"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:我发现火源提示:

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-07-05 18:25:46

Firebase SDK位于本地存储库中,如果过时,则需要更新该存储库:

票数 3
EN

Stack Overflow用户

发布于 2017-07-05 13:51:50

看起来您缺少了一个与Firebase相关的步骤。请确保您已经完成了所有步骤的说明。

来自文档

在使用Mobile推送服务之前,您需要向应用程序添加Firebase。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44923884

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档