Android Studio Could not find method runProguard() for arguments?

后端 未结 6 1665
予麋鹿
予麋鹿 2020-12-04 18:59
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java \"- com.intellij.rt.execution.application.AppMain org.gradle.launcher.GradleMain --build-fil         


        
6条回答
  •  一个人的身影
    2020-12-04 19:22

    I had the same problem after updating android studio to 1.0 RC 3. I couldn't import my project to new version. i had to create a new project and add the files to the new project from the previous project manually.

    After that I found a change in the gradle build file.

    Here is the change:

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    

    Instead of "runProguard false" use "minifyEnabled false"

提交回复
热议问题