Tried all solutions from here and it still doesn't work. Can you help me? There is no case. I am using cordova 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.
CodePudding user response:
You are using androidx.browser: browser: 1.4.0.
version which has been compiled using targetSdkVersion 31
. In order to use this, you need to make your app also compatible with version 31.
Go to build.gradle
and update compileSdkVersion
and targetSdkVersion
android {
compileSdkVersion 31 // updated to 31
defaultConfig {
applicationId "myproject.name.testApp"
minSdkVersion 21
targetSdkVersion 31 // updated to 31
versionCode 1
versionName "1.0"
}
}
If you don't want update to version 31, you can downgrade your androidx.browser
to androidx.browser:browser:1.3.0
, this runs on sdkVersion 30