8

My ADT(Android Developer Tools ) was working fine and it was showing the graphical layout of all files few days back but today it is showing this " Failed to load the LayoutLib: com.android.layoutlib.bridge.Bridge " All projects are running fine but i can't see the graphical layout of my .XML files. How can I fix it?

Taimour
  • 129
  • 1
  • 1
  • 9

4 Answers4

39

Install a new API (upper than 14) and change the API, as below:

Matt
  • 74,352
  • 26
  • 153
  • 180
yasin
  • 391
  • 3
  • 3
  • 4
    This answer helped me, because i was using the N developers preview. Just switched to API 23 and it worked perfectly – Rikus Louw Mar 15 '16 at 08:34
3
  • Restart IDE

  • Restart a computer

  • Try to update ADT, SDK and Eclipse Plugin

  • If that will not help reinstall ADT, SDK and Eclipse Plugin

TN888
  • 7,659
  • 9
  • 48
  • 84
2

This problem I have dealt with has be solved,enter image description here

I install this IDE default option is API23.N, just change this option to solve it,for example, Choose Android API 21.

JH.Yang
  • 21
  • 1
0

Possibly Classes With Identical names inside different projects.

I might know the issue. I just recreated a framework I made, and I called it number 2. A lot of the classes had the same name, and same method, inside packages of the same name. This seemed to really confuse the IDE and/or JRE.

I was able to sort of fix the problem, by making sure they weren't both being imported inside the same project! It is still giving me strange warnings, but it seems to be working correctly. What I would ultimately suggest if this is the case, would be to remove the duplicates from the project all together.

user2820531
  • 143
  • 1
  • 10