Select target API in the Android Studio layout design preview

前端 未结 2 1028
难免孤独
难免孤独 2020-12-19 06:37

My application targets API 17 but the min Sdk version is the 8. In the layout design preview page I can se how my layout appears on an API 17 version, but if I click on the

相关标签:
2条回答
  • 2020-12-19 07:14

    It seems like 17 is the only available API level for preview at the moment.

    I have all the SDKs installed correctly and it appears the same as yours.

    0 讨论(0)
  • 2020-12-19 07:23

    UPDATE

    Actually I found out what the problem was: when you install Android Studio, by default it uses its own Android SDK (located in the Android Studio.app/sdk folder), instead of the ones you downloaded (for example to use with Eclipse).

    So I simply had a misalignement between the SDK I thought I was using and the ones I was actually using. To solve this you have 2 options:

    -from Android Studio select File -> Project Structure. Under "platform settings" you can add your (updated) downloaded SDK folder and use it for your projects.

    -open the Android Studio SDK manager and install also the older android versions SDKs

    0 讨论(0)
提交回复
热议问题