解決Android報錯Dex file with version '38' cannot be used with min sdk level '29'.


修改app下build.gradle文件

android {
compileSdkVersion 29
defaultConfig {
applicationId "com.example.z.test1"
minSdkVersion 29
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}降低版本我這邊寫成15
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.example.z.test1"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}


免責聲明!

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



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