简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM