为什么 minSdkVersion 太新了?
Why is minSdkVersion too new?
正在尝试测试与新泡泡相关的示例应用程序 api。
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_OLDER_SDK
The application's minSdkVersion is newer than the device API level.
build.gradle
compileSdkVersion 'android-R'
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.bubbles"
minSdkVersion 'Q'
targetSdkVersion 'android-R'
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
这是我的虚拟设备。我 运行 正在 Pixel 3 API R
。
这是否足以在此设备上 运行 API 30 个应用程序?我不确定冲突是什么。谢谢
替换:
minSdkVersion 'Q'
targetSdkVersion 'android-R'
与:
minSdkVersion 'R'
targetSdkVersion 'R'
Q 是 2019 版,所以这不是您想要的 minSdkVersion
。 android-R
不应被识别为有效的 targetSdkVersion
值——该语法仅适用于 compileSdkVersion
.
(而且,是的,这一切都是一团糟,而且已经存在多年......)
正在尝试测试与新泡泡相关的示例应用程序 api。
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_OLDER_SDK
The application's minSdkVersion is newer than the device API level.
build.gradle
compileSdkVersion 'android-R'
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.bubbles"
minSdkVersion 'Q'
targetSdkVersion 'android-R'
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
这是我的虚拟设备。我 运行 正在 Pixel 3 API R
。
这是否足以在此设备上 运行 API 30 个应用程序?我不确定冲突是什么。谢谢
替换:
minSdkVersion 'Q'
targetSdkVersion 'android-R'
与:
minSdkVersion 'R'
targetSdkVersion 'R'
Q 是 2019 版,所以这不是您想要的 minSdkVersion
。 android-R
不应被识别为有效的 targetSdkVersion
值——该语法仅适用于 compileSdkVersion
.
(而且,是的,这一切都是一团糟,而且已经存在多年......)