我得到以下错误,运行"sudo离子cordova模仿android“在离子3项目。
我找到了在build.gradle中将所有google-play服务保持在相同版本的解决方案。
buildscript {存储库{ jcenter() maven { url "https://maven.google.com“}
// Switch the Android Gradle plugin version requirement depending on the
// installed version of Gradle. This dependency is documented at
// http://tools.android.com/tech-docs/new-build-system/version-compatibility
// and https://issues.apache.org/jira/browse/CB-8143
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}}
编译"com.google.android.gms:play-services-auth:11.8.0“"com.google.android.gms:play-services-identity:11.8.0”编译"com.google.android.gms:play-services-location:11+“编译"com.android.support:support-v4:23+”编译"com.google.android.gms:play-services-base:11.0.4“编译"com.google.android.gms:play-services-ads:11.0.4”
每次我把平台/android/build.gradle从11.8.0修改到11.0.4,用"sudo离子型cordova模仿android“来构建我的项目。build.gradle中的所有更改都将被恢复。在离子项目中是否有同步的方法。我没有找到任何同步它的命令。我正在使用android@6.3.0
离子信息
cli包:(/usr/local/lib/node)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0全球一揽子计划:
cordova (Cordova CLI) : not installed本地套餐:
@ionic/app-scripts : 3.1.6
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2系统:
Node : v8.10.0
npm : 5.8.0
OS : macOS High Sierra环境变量:
ANDROID_HOME : not set其他:
backend : pro发布于 2018-04-20 12:22:27
需要更新".//platforms/android/project.properties"文件,而构建它将更新build.gradle文件
https://stackoverflow.com/questions/49585333
复制相似问题