Can I run my app on API 23 if target SDK version I used is 21

前端 未结 3 2017
有刺的猬
有刺的猬 2021-01-22 17:36

I have developed an Android App having API 21 as target SDK version.

Will it run fine on API above it, for example, API 23?

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-22 18:03

    According to Uses SDK

    android:targetSdkVersion

    An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion. This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version. The application is still able to run on older versions (down to minSdkVersion).

    It could also help you to know this

    android:minSdkVersion

    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. You should always declare this attribute.

提交回复
热议问题