[Solved] Error: No resource found that matches the given name (at 'resource' with value '@xml/hello_widget_provider').

1. Create new folder under res, name it as “xml”
2. Create new file under xml and name it as hello_widget_provider.xml
3. Insert the following code into the hello_widget_provider.xml file and save.

<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="146dip"
android:minHeight="72dip"
android:updatePeriodMillis="10000"
android:initialLayout="@layout/main"
/>

Directory shows like this



If it helps please  leave your comments


No comments:

Post a Comment