從這里嘗試了所有解決方案,它仍然不起作用。你能幫助我嗎?沒有案例。我正在使用科爾多瓦 10.1.0
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF / com / android / build / gradle / aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.browser: browser: 1.4.0.
uj5u.com熱心網友回復:
您正在使用androidx.browser: browser: 1.4.0.已使用targetSdkVersion 31. 為了使用它,您需要使您的應用程式也與版本 31 兼容。
轉到build.gradle并更新compileSdkVersion和targetSdkVersion
android {
compileSdkVersion 31 // updated to 31
defaultConfig {
applicationId "myproject.name.testApp"
minSdkVersion 21
targetSdkVersion 31 // updated to 31
versionCode 1
versionName "1.0"
}
}
如果你不想更新到版本 31,你可以降級androidx.browser到androidx.browser:browser:1.3.0,這在 sdkVersion 30 上運行
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/358653.html
上一篇:在組件Ionic中重新加載資料
下一篇:CordovaAndroid構建錯誤:“:app:processReleaseGoogleServices'(型別'GoogleServicesTask')”
