Cannot choose between the following variants of project

该问题是升级android studio3.0导致的。

解决办法:

在build.gradle中

注释掉:

apply plugin: ‘android-apt‘,将apt改成annotationProcessor

 

以及一些其他问题

 The SourceSet ‘instrumentTest‘ is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?

解决办法:用 androidTest 替换 instrumentTest

 

Cannot choose between the following variants of project

上一篇:keras模型可视化问题记录(pydot-ng、graphviz)-windows10


下一篇:C#深入浅出之操作符和控制流程