简体   繁体   中英

Android Studio Resource Linking Failed for Resource xml Not Found

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 :<

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM