user3792834
user3792834

Reputation: 135

Set Layout Preview API in Android Studio


I read on JetBrains's page that "You can also preview the layout on all installed Android API versions."

I'm trying to show layout preview API 21 and API 16 (Android 4.1 SDK is already installed)

Android studio is just showing API 21-22-23. How can add API 16 also? enter image description here enter image description here

Upvotes: 2

Views: 1649

Answers (2)

user3792834
user3792834

Reputation: 135

I figured out what was the problem. Android SDK Platform is not enough alone for preview. You need to install System images also. I missed the images. Be sure, "show package details" checkbox is checked. Then you can install system images.

enter image description here

Upvotes: 3

Idan
Idan

Reputation: 5817

enter image description here

Just add the Api versions you want to support.

Edit: Try adding a new device with the api version you're looking to preview.

enter image description here

Upvotes: 0

Related Questions