使用android studio导入之前版本系统的project sync failed 解决办法

来源:互联网 发布:集贤一中网络空间 编辑:程序博客网 时间:2024/06/13 13:17

使用android studio导入之前版本系统的project sync failed 解决办法 
Error:(15, 0) Gradle DSL method not found: ‘runProguard()’ Possible causes:

  • The project ‘HackerTool’ may be using a version of Gradle that does not contain the method.Open Gradle wrapper file
  • The build file may be missing a Gradle plugin. Apply Gradle plugin

-修改 runProguard 为 minifyEnabled 即可

Previous code : 
buildTypes { 
release { 
runProguard false 
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’ 

---------------------------------------------------------------------------------------------------------
Current code : 
buildTypes { 
release { 
minifyEnabled false 
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’ 

}

0 0