UnsupportedMethodException Android Studio 2.2

I updated my android studio to 2.2.Now when I open and run previous project I got error UnsupportedMethodException.

Unsupported method: AndroidProject.getPluginGeneration().
             The version of Gradle you connect to does not support that method.
             To resolve the problem you can change/upgrade the target version of Gradle you connect to.
             Alternatively, you can ignore this exception and read other information from the model

.

Here are some solutions for your problem. Disabling Instant run should be enough

Gradle version:

Go to your build.gradle file and change gradle-plugin version to:

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0'
}
Instant Run

It is caused by Android Studio checking availability of the Instant Run feature.

Fix it by disabling Instant Run. Go to:

File -> Settings -> Build, Execution, Deployment -> Instant Run.

and uncheck all positions

Using android-apt plugin

This problem may be caused also by using this plugin.

I suppose for this example that you're using Butterknife library.....

NOTE: If you are using the new Jack compiler with version 2.2.0 or newer, you do not need the 'android-apt' plugin and can instead replace apt with annotationProcessor when declaring the compiler dependency.

Go to your build.gradle file and remove:

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'

Then go to your app/build.gradle file and remove:

apply plugin: 'android-apt'

Then in the same file, replace existing:

apt 'com.jakewharton:butterknife-compiler:8.4.0'

with

annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'

It should work now

Running Android Studio 2.2.3 on Windows 10 from a imported Eclipse UnsupportedOperationException * Try: Run with --stacktrace option to  NOTE: If you are using the new Jack compiler with version 2.2.0 or newer, you do not need the 'android-apt' plugin and can instead replace apt with annotationProcessor when declaring the compiler dependency. Go to your build.gradle file and remove: classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' Then go to your app/build.gradle file and remove:

Update Gradle version to a higher version for me it starts working when I updated it to 2.10

I updated my android studio to 2.2.Now when I open and run previous project I got error UnsupportedMethodException. Unsupported method: AndroidProject. NOTE: If you are using the new Jack compiler with version 2.2.0 or newer, you do not need the 'android-apt' plugin and can instead replace apt with annotationProcessor when declaring the compiler dependency. Go to your build.gradle file and remove: classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' Then go to your app/build.gradle file and remove:

You are trying to import a gradle project built with a version not suppoted in your ide(Android Studio), try to rebuild your project with a compatible version from the command line first:

gradle wrapper --gradle-version 3.0

(3.0 is just an example, try to find out what version needs your IDE).

After this step the import process should be ok

package com.ebookfrenzy.database.provider; import android.content. one or more rows. throw new UnsupportedOperationException("Not yet implemented");​  Hola yo no se pudo encontrar el Archivo -> Ajustes -> Construir, Ejecución, Implementación -> Instante de Ejecución. Instantánea de Ejecución no es visible y estoy usando android studio 2.2.2 en mac; en mac, Android Studio -> Preferencias> Construir, Ejecución, Implementación -> Instante de Ejecutar

As per some of the above, go to File -> Project structure, in the first two fields I entered the most recent Gradle version and Android Plugin Version and click OK, and then wait. The whole process may take half an hour, but keep clicking the blue hyperlinks and they will get it done for you!

gradle compile error in Android Studio 2.2 #1505. Closed. wangbourne opened this UnsupportedOperationException 11:03:30.684 [ERROR]  Android API 25 Support - Basic support for API 25 inside Android Studio to support the Android 7.1 developer preview. We know there are still a few more updates inside Android Studio before we set API 25 as the default. Expanded reporting when reporting Instant Run issues - When reporting an instant run issue we now collect

UnsupportedMethodException Android Studio 2.2. Я обновил свою студию android до 2.2.Now, когда я открыл и запустил предыдущий проект, я получил​  WARNING: start “bin\studio.exe” instead of “bin\studio64.exe” if you only have 32 bit JDK installed. WARNING 2: environment variable “JAVA_HOME” should be defined and should point to a valid JDK (e.g. “C:\Program Files\JDK”)

Как заявил Джастин , обновление до Android Studio 0.9.0 устраняет эту проблему. Похожие вопросы: UnsupportedMethodException Android Studio 2.2. Terms and Conditions This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in the License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of the License Agreement.

Android Studio 2.2 is available to download today. Previewed at Google I/O 2016, Android Studio 2.2 is the latest release of our IDE used by millions of Android developers around the world. Packed with enhancements, this release has three major themes: speed, smarts, and Android platform support. Develop faster with features such as the new

Comments
  • you can correct the gradle version in build.gradle file
  • possible duplicate of stackoverflow.com/questions/39591531/…
  • Hi i could not find File -> Settings -> Build, Execution, Deployment -> Instant Run. Instant Run is not visible and im using android studio 2.2.2 on mac
  • @jonney on mac, it's Android Studio -> Preferences -> Build, Execution, Deployment -> Instant Run
  • Disabling Instant Run does not make this error go away.
  • For me there solutions didn't work. What did work was to use version 22.0.0 for the appcompat-v7 and support-v4 libraries (in "app/build.gradle") and then click on the link suggested when the error is displayed, which is saying something about importing a Google Maven library/project.