error: Error parsing XML: unbound prefix

created at 07-12-2021 views: 104

description

When using library on Android, xml uses custom attribute prompt error:

Error parsing XML: unbound prefix

Just encountered when using Android-Bootstrap

solution

Refer to the namespace in xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >









xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
created at:07-12-2021
edited at: 07-12-2021: