简体   繁体   中英

How can I solve the targetdkversion and API problem?

In my application I have to use some code snippets like "canvas.save(), canvas.restore(), createdscaledBitmap" that I have to targetsdkversion=API27. I can't use them while targetsdkversion= API30, I researched and needed to use API27 and now I'm using API27. My question is, if I install GOOGLE PLAY STORE as targetsdkversion=API27, will it work on a device with API32?

when you mark with targetsdkversion=x, any device with equal or higher Android version than x will work fine, devices with lower version may have unknown behavior, or error. You should also set android:minSdkVersion in AndroidManfiest.xml to x to prevent lower version devices from downloading your app.

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