AndroidProject.getVariantNames().报错

问题:

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.

修改方法:

先查看你的android studio是什么版本再修改build.gradle文件中的的classpath中一致

你可能感兴趣的:(AndroidProject.getVariantNames().报错)