我安装了来自(React Native Push Notifications)的react-native-push-notification,但我无法在安卓系统上运行该应用程序。我没有在IOS上测试
* 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.发布于 2019-08-12 20:46:40
从今天开始,我也面临着这个问题。我发现android/build.gradle中缺少googlePlayServicesVersion。添加了下面的行,它解决了库的问题。
// android/build.gradle
buildscript {
ext {
googlePlayServicesVersion = "+" // <- add this line
}https://stackoverflow.com/questions/57459886
复制相似问题