App compat version for min sdk 9

2019-07-18 19:39发布

I have Android Studio version 2.3.3 and sdk tools version 25.2.5. When I build a new project with min sdk 9 it makes a mistakes and i have to use min sdk 14 for my project. it has anyway to change it to 9 and also use appcompat? my default appcompat version is v7:26.+ I also read other questions but my problem didn't solve.

2条回答
Root(大扎)
2楼-- · 2019-07-18 20:28

have to check the AppcombatActivity availabilty in Api. See this link https://developer.android.com/reference/android/support/v7/app/AppCompatActivity.html

查看更多
地球回转人心会变
3楼-- · 2019-07-18 20:38

Starting with version 26.0.0 of the Support Libraries the minSdk has been bumped to 14 (Android 4.0, see this link). If you have to support platforms down to API-Level 9 you have to use version 25.4.0 which is last one that supported every api level from 7 onwards.

Note: There's really no reason to support such old devices, according to the latest numbers they only account for roughly 0.7% of all devices. (link)

查看更多
登录 后发表回答