UnsupportedMethodException Android Studio (Beta) 0.8.6

Failed to set up Android-modules in the project "android": Unsupported method: BaseArtifact.getJavaCompileTaskName()

.

The version Gradle

you are connecting to does not support this method. To fix the problem, you can change / update target version

from the Gradle you are connecting to.

Alternatively, you can ignore this one Exception

and read other information from the model.

Can you help me solve this problem?

+3


source to share


3 answers


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

      



Inside your "build.gradle" files, if you have "minifyEnabled false", comment that and just leave "runProguard false". See my example code above.

0


source


You need to open project structure or module settings and fix gradle version or you can fix gradle version in build.gradle file.



For your Android Studio version, you need to have gradle version 1.12. I had the same problem and fixed it by updating my gradle version to 1.12 from 2.2.1.

0


source


Go to build.gradle version and update it:

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}

      

-2


source







All Articles