android studio升級3.4.1時遇到的問題

1.The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin.android

解決辦法gradle

用 androidTest 替換 instrumentTest,編譯運行便可。xml

 

2.The minSdk version should not be declared in the android manifest file. You can move the version blog

解決辦法io

把manifest.xml 裏的sdk最小版本設置都刪掉  。Androidstudio3.0 之後 不能在manifest.xml 設置這些必須在 gradle裏設置編譯

3.The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. jdk

解決辦法 修改ext.kotlin_version,改爲1.3.10kotlin

 

 改完以後可能會出現 Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.10file

解決辦法sdk

寫法上將jre換成jdk

相關文章
相關標籤/搜索