android studio升級3.4.1時遇到的問題


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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM