When loading a widget if it cannot find a resource or something it says Problem Loading Widget. That's all! Amazing! This message remains on the home screen and does not even say which widget it had trouble loading.
I figured it out by trial and error but I would like to know if there are any places to find the error message when this occurs. Where will Android say what problem it had loading the widget or even which widget it failed to load?
Go to project setting -> Widget -> dependencies -> click in '+' -> add module ->add widget here.
Check elements you used in the view in a Widget..
Documentation link
A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:
And the following widget classes:
Using forbidden elements causes this very
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With