Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android WidgetPreview Error on API 26 Emulator

I am trying to create a widget preview with the WidgetPreview app on a API 26 emulator, but it shows "Error saving preview" as a toast message. It works on API level 21. There are zero results online. Anyone have an idea what could cause this?

like image 867
Florian Walther Avatar asked Mar 05 '18 20:03

Florian Walther


People also ask

How to fix emulator error in Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why do apps sometimes look different in the designer than they do in the emulator?

The reason why the designs look different is that the emulator's screen configuration is different to that which is used to render the design preview.


Video Answer


1 Answers

I solved my problem by granting the Storage Permission manually for the Widget Preview app in the app settings. The default Widget Preview app on the emulator crashes when trying to send a mail, but there is a newer version on the Playstore that works.

like image 181
Florian Walther Avatar answered Oct 21 '22 11:10

Florian Walther