Failed to load LayoutLib: com.android.layoutlib.bridge.Bridge

My ADT (Android Developer Tools) worked fine, and it showed the graphic design of all the files a few days ago, but today it shows โ€œLayoutLib failed: com.android.layoutlib.bridge.Bridge.โ€ All projects work fine, but I donโ€™t I see a graphic layout of my .XML files. How can i fix this?

+8
android
source share
4 answers
  • Restart IDE

  • Restart your computer

  • Try updating the ADT, SDK, and Eclipse plugin

  • If this does not help reinstall ADT, SDK and Eclipse Plugin

+3
source share

Install the new API (above 14) and modify the API as shown below:

+39
source share

This problem I encountered has been resolved, enter image description here

I set this default IDE option to API23.N, just change this parameter to solve it, for example, select Android API 21.

+2
source share

Perhaps classes with identical names inside different projects.

I might know this problem. I just recreated the structure that I created and I called it number 2. Many classes had the same name and the same method inside packages with the same name. This seemed to really confuse the IDE and / or JRE.

I managed to solve the problem, making sure that they were not imported inside the same project! This still gives me weird warnings, but it seems to be working correctly. What I would eventually suggest, if so, would be to remove duplicates from the project together.

0
source share

All Articles