【发布时间】:2018-09-04 03:33:58
【问题描述】:
我尝试使用 nativescript 在 android 中构建项目。它抛出
像这样的错误不止一个带有包名的库
'com.google.android.gms.license'.
package.json
"tns-android": {
"version": "3.3.1"
}
"nativescript-onesignal": "^1.0.7",
"nativescript-push-notifications": "0.0.19",
App.gradle
dependencies {
compile 'com.onesignal:OneSignal:3.+@aar'
compile 'com.google.android.gms:play-services-gcm:+'
compile 'com.google.android.gms:play-services-location:+'
compile "com.android.support:multidex:1.0.0"
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.2.4' }
如何解决问题?
【问题讨论】:
-
"tns-android": { "version": "3.3.1" }
-
你可以查看我的回答here我也遇到过同样的问题。
-
我尝试像 tns 平台添加 android@3.4 那样更新 android 版本。但是我在像 cp 这样的更新过程中遇到错误:没有这样的文件或目录:cd/Project/node_modules/tns-android/framework/库
-
分叉部分。
标签: nativescript nativescript-cli