I am trying to run the app on my Android 10 device and the following error is shown – minSdk(API 30) > deviceSdk(API 29)

huangapple go评论74阅读模式
英文:

I am trying to run the app on my Android 10 device and the following error is shown - minSdk(API 30) > deviceSdk(API 29)

问题

我正在尝试从Android Studio在我的Android 10设备上运行该应用程序,但出现了以下错误 -

10/17 09:16:05: 在物理设备上启动'app'。
安装未成功。
无法安装该应用程序:INSTALL_FAILED_OLDER_SDK

APK列表:
[0] 'C:\Users\WELCOME\AndroidStudioProjects\BottomNav2\app\build\outputs\apk\debug\app-debug.apk'
应用程序的minSdkVersion较新,超出设备的API级别。
重试

我认为我需要更改minSdk值,但是在哪个文件中以及如何操作呢?

英文:

I am trying to run the app on my Android 10 device from the Android Studio and the following error is shown -

10/17 09:16:05: Launching 'app' on Physical Device.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_OLDER_SDK

List of apks:
[0] 'C:\Users\WELCOME\AndroidStudioProjects\BottomNav2\app\build\outputs\apk\debug\app-debug.apk'
The application's minSdkVersion is newer than the device API level.
Retry

I think I have to change the minSdk value, but in which file and how to do it?

答案1

得分: 0

你所使用的设备的API版本低于您所要求的最低API版本。因此,您可以使用API 30创建另一个物理设备,或者您可以创建另一个低于所需API的项目。
如果您希望在已有项目中进行更改,您可以前往 build.gradle(app)。在default config下,您会找到minSDKVersion,您可以从那里进行更改,然后与gradle文件同步项目。在进行更改后,您将在编辑器右上方看到同步按钮。

英文:

The device you are using has lesser API than minimum required API set by you. So, either you can create another physical device with API 30, or you can create another project with lesser API.
If you wish to change it in the already existing project, you can go to build:gradle(app). There under default config, you will find minSDKVersion, you can change it from there and then sync project with gradle files. You will see the sync button on top right of the editor after making changes.

huangapple
  • 本文由 发表于 2020年10月17日 11:49:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/64398820.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定