exception raised during rendering:Binary XML file line #-1:error inflating class

前端 未结 8 1907
野的像风
野的像风 2020-12-04 14:27

\"image

I tried to include check boxes in the layout and after dragging and dropping I get this er

相关标签:
8条回答
  • You can try to change the AppTheme.

    0 讨论(0)
  • 2020-12-04 14:38

    I was using API 22, though API 25 was available on my System.

    Moving the problematic tab between different split views did the trick in a second.

    0 讨论(0)
  • 2020-12-04 14:38

    I've had this exception before and what worked for me was File -> Invalidate Caches/Restart.

    You may try that, but you should know that all of the Local History will be deleted.

    Edit: Downgrading from API 24 to API 23 also works.

    0 讨论(0)
  • 2020-12-04 14:40

    I had a similar problem. I resolved it by decreasing the size of the images in the drawable folder.

    0 讨论(0)
  • 2020-12-04 14:41

    I have selected the previous version as suggested but still did not see the previous image.

    What I did was this:

    1. In the list of versions selected the " previous version " and "Preview Androids Versions " .

    2. Once the screens appear earlier versions of android I click on one of the previous and drag on the image layout that does not images.

    To me it worked well , I hope and serve them . We're reading .

    0 讨论(0)
  • UPDATE Sep/2016

    Issue is no longer reproducible on Android Studio v2.2. Update your Android Studio and the issue will be no longer reproducible.

    UPDATE Aug/2016

    Issue is still happening in Android Studio v2.1.3

    Original Answer

    It seems this is an issue and it is being handled by google HERE:

    Some other people are facing the same issue and the fix is always to change the preview API from 24 to 23 (or any other version).

    You may need to download a previous version of SDK.. You don't need to change your build.gradle... Just download the SDK and Android Studio will allow you to change the SDK in Layout Preview

    0 讨论(0)
提交回复
热议问题