UnsupportedMethodException Android Studio 2.2

前端 未结 5 1886
梦如初夏
梦如初夏 2021-01-31 09:12

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

Unsupported method: AndroidProject.getPluginG         


        
5条回答
  •  太阳男子
    2021-01-31 09:39

    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

提交回复
热议问题