Home > Mobile >  Android Studio Resource Linking Failed for Resource xml Not Found
Android Studio Resource Linking Failed for Resource xml Not Found

Time:09-16

I getting This Error

Android resource linking failed
C:\Users\Z9F4\AndroidStudioProjects\TodoList\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:29: error: resource xml/text_view_circle (aka com.example.todolist:xml/text_view_circle) not found.
error: failed processing manifest.

This error come out when i run my simulator

This is my text_view_circle.xml

    <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/cyan"/>
    <stroke
        android:width="4dp"
        android:color="#fff"/>
    <corners
        android:bottomLeftRadius="50dp"
        android:bottomRightRadius="50dp"
        android:topLeftRadius="50dp"
        android:topRightRadius="50dp"/>
</shape>

This is my AndroidManifest.xml

SecondPage of AndroidManifest.xml

ThirdPage of AndroidManifest.xml

Help me to solve it :< thanks! I confuse it for long time :<

CodePudding user response:

In your manifest you have written

<meta-data .. android:resource="@xml/text_view_circle"/>

which should be

<meta-data .. android:resource="@drawable/text_view_circle"/>

as you have your text_view_circle.xml in drawable folder

  • Related