Android Studio 2.2.3在更改项目配置后影响build.gradle文件,造成程序编译异常

Mac 10.12.2
在使用过程从Git下载别人的项目,直接打开在更改项目的配置时保存后会影响build.gradle文件。
看图:
build.gradle文件中有这几行
compile "com.google.android.gms:play-services-maps:${play_services_version}"
compile "com.google.android.gms:play-services-location:${play_services_version}"
compile "com.google.android.gms:play-services-analytics:${play_services_version}"
compile "com.android.support:support-v4:${support_lib_version}"
compile "com.android.support:appcompat-v7:${support_lib_version}"
compile "com.android.support:preference-v7:${support_lib_version}"
compile "com.android.support:preference-v14:${support_lib_version}"
compile "com.android.support:cardview-v7:${support_lib_version}"
compile "com.android.support:recyclerview-v7:${support_lib_version}"
compile "com.android.support:design:${support_lib_version}"

本来这是一行一行的,Open Module Settting,然后更改任何一个值后,再保存
compile "com.google.android.gms:play-services-maps:${play_services_version}" compile "com.google.android.gms:play-services-location:${play_services_version}" compile "com.google.android.gms:play-services-analytics:${play_services_version}" compile "com.android.support:support-v4:${support_lib_version}" compile "com.android.support:appcompat-v7:${support_lib_version}"
这个文件里面的compile 会变成一行,然后程序就报错了
2016-12-28 22:11 添加评论 分享
已邀请:

要回复问题请先登录注册

退出全屏模式 全屏模式 回复