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

使用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’ 

}

你可能感兴趣的:(使用android studio导入之前版本系统的project sync failed 解决办法)