1、当前gradle版本最低必须是5.1.1等其他版本(英文忘了)
解决方案:降低项目的build.gradle文件里面的classpath的版本
ERROR: Unsupported method: AndroidProject.getVariantNames().
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.
解决方式:
1、检查版本好是否对应
https://developer.android.google.cn/studio/releases/gradle-plugin#updating-gradle
2、如果不一样,就该一样试试
3、如果版本没问题,先改成最新版本,在改回原来版本
Tinker does not support instant run mode, please trigger build by assembleDebug or disable instant run in 'File->Settings...'.
关掉快速启动
网友评论