我已经为搭载 Android 7.0 的设备开发了一个 Android 应用程序。
现在我必须使用装有 Android 4.2.2 的旧设备测试此应用程序。
Android Studio 在尝试部署时显示以下错误:minSDK(API 23) > deviceSDK(API 17)。
如何更改项目的 API?
最佳答案
An integer designating the minimum API Level required for the application to run. The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in this attribute.
打开模块级别 build.gradle
并设置
defaultConfig {
minSdkVersion 17
targetSdkVersion //
versionCode //
versionName "//"
}
之后,Clean-Rebuild-Run
。
关于android - 设备 minSDK 低于使用的 SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50335212/