Unsupported method: AndroidProject.getPluginGeneration() while running project

后端 未结 7 1180
青春惊慌失措
青春惊慌失措 2020-12-07 15:20

I\'m trying to run my Project with Android Studio 2.2 but I get this error

Unsupported method: AndroidProject.getPluginGeneration().
The version of Gradle yo         


        
7条回答
  •  攒了一身酷
    2020-12-07 15:55

    I ran in the same error on a very old project. Since Android Studio 3.5 does not have the Instant Run Option anymore, I required a different solution.

    It turned out, that I had to change the gradle version manually in the Project Settings. I used the version a New Project would use automatically, since the dropdowns were empty.

    In my case, it was Plugin Version 3.5.1 and Gradle Version 5.4.1.

    After that I started a Build - Clean Project and everything turned out fine.

提交回复
热议问题