我正在尝试在运行Android 7.0
ie的 Android 设备(Tecno Camon Cx Air)上调试我的应用程序API level 24
,但 Android Studio 不断给我这个错误:
04/27 17:37:29: Launching 'app' on TECNO TECNO CX Air.
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.
Retry
刚刚在 API 级别 27、28、29 上尝试过,我得到了同样的错误。
这是我的默认配置:
compileSdkVersion "android-R"
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.example.instantweather"
minSdkVersion 21
targetSdkVersion "R"
versionCode 1
versionName "1.0"
...
将不胜感激任何帮助;)