Androidの the loading of difficult diseases report error inflating class <unknown>

Source: Internet
Author: User

Android.view.InflateException:Binary XML file line #12: Error inflating class <unknown>

It is possible that there is an error in the property of one of the wedget in your layout, such as a reference to attr/xxxx, but there is no value assigned to this attr in your subject.

<?XML version= "1.0" encoding= "Utf-8"?><LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:id= "@+id/llplaceholderloading"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"android:layout_gravity= "Center"Android:background= "? Attr/primary_page_background"android:gravity= "Center"android:orientation= "vertical"android:visibility= "visible" >    <ProgressBarstyle= "@style/apptheme.widget.progress"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginbottom= "8DP" />    <TextViewAndroid:id= "@+id/tvloadtip"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:layout_marginbottom= "16DP"Android:text= "? Attr/loading_tip"Android:textcolor= "@color/progress_tips_text_color"android:textappearance= "? Android:attr/textappearancemedium" /></LinearLayout>

Like this in style does not have the attr assignment, this interface is loaded well, and error

02-03 17:24:50.746:e/androidruntime (10702): java.lang.RuntimeException:Unable to start activity componentinfo{ Net.realtor.app.extranet.cmls/net.realtor.app.extranet.cmls.ui.activity.testactivity}: Android.view.InflateException:Binary XML file line #12: Error inflating class Android.widget.ProgressBar

Androidの the loading of difficult diseases report error inflating class <unknown>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.