Error message when trying to run add on my emulator
CodePudding user response:
Just update your minsdk and complied SDK both to 30 in build.gradle file. The issue will be resolved
CodePudding user response:
Make sure that the minimum SDK version is smaller than the compiled SDK version in the app (not project) gradle file. It will works as long as the minimum SDK is smaller than the compiled SDK.
//This must be larger than minSDK
compileSdk 31
buildFeatures{
viewBinding true
}
defaultConfig {
applicationId "com.example.myapp"
//This must be smaller than compileSDK
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}