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

前端 未结 4 1608
天涯浪人
天涯浪人 2021-01-02 13:29

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 Layou

4条回答
  •  长发绾君心
    2021-01-02 14:05

    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.

提交回复
热议问题