我最近安装了 android Studio 3.2 Canary 14 来开发 Android P。我的 minSDK 是 15,目标是“P”,但在 Kitkat 上运行应用程序失败并出现错误
Failure [INSTALL_FAILED_OLDER_SDK] Installation failed since app's minSdkVersion is newer than device's API level (API 19). Please update your apps minSdkVersion. Error while Installing APK
最佳答案
Google 将其设置为针对 android-P
编译的应用程序只能在 Android P 设备上运行,直到我们今年晚些时候退出开发者预览版。构建工具会覆盖您的 minSdkVersion
并为其赋予值 P
。您也许可以在 Android Studio 的“合并 list ”选项卡中看到这一点。
关于Android P 应用程序未安装在 KitKat 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50401848/