1.The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin.
解決辦法
用 androidTest 替換 instrumentTest,編譯運行即可。
2.The minSdk version should not be declared in the android manifest file. You can move the version
解決辦法
把manifest.xml 里的sdk最小版本設置都刪掉 。Androidstudio3.0 以后 不能在manifest.xml 設置這些必須在 gradle里設置
3.The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
解決辦法 修改ext.kotlin_version,改成1.3.10
改完之后可能會出現 Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.10
解決辦法
寫法上將jre換成jdk