首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装react-native-push-notification后,无法构建应用程序

安装react-native-push-notification后,无法构建应用程序
EN

Stack Overflow用户
提问于 2019-08-12 18:55:40
回答 1查看 1.1K关注 0票数 1

我安装了来自(React Native Push Notifications)的react-native-push-notification,但我无法在安卓系统上运行该应用程序。我没有在IOS上测试

代码语言:javascript
复制
* Where:
Build file 'C:\Users\Zarzu Victor\payAssistant\node_modules\react-native-push-notification\android\build.gradle' line: 47

* What went wrong:
A problem occurred evaluating project ':react-native-push-notification'.
> Could not get unknown property 'DEFAULT_GOOGLE_PLAY_SERVICES_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-08-12 20:46:40

从今天开始,我也面临着这个问题。我发现android/build.gradle中缺少googlePlayServicesVersion。添加了下面的行,它解决了库的问题。

代码语言:javascript
复制
// android/build.gradle

buildscript {
    ext {
        googlePlayServicesVersion = "+" // <- add this line
    }
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57459886

复制
相关文章

相似问题

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