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

 

posted @ 2019-12-03 09:49  only_books  阅读(2488)  评论(0编辑  收藏  举报