Can't preview Android XML layout - LayoutLib is too recent. Update your tool?

后端 未结 4 704
萌比男神i
萌比男神i 2020-12-22 02:55

After upgrading the Android SDK through the AVD manager, I cannot preview XML layouts any longer in eclipse for Android 2.2 previews. Eclipse says, \"LayoutLib is too recen

4条回答
  •  青春惊慌失措
    2020-12-22 03:28

    More of a fix than an answer, or a fix with no explanation: r-click on the res\layout*.xml file you want to open, select Open with, then select Android Layout Editor. That should open the .xml in the graphical layout/design view you're used to.

    For whatever reason, after updating from 10.0.1 to 12.0.0, my layout viewer default changed to XML Editor (one of the options under the context menu referenced above), and I have to manually open with different editor. Opening manually selecting Android Layout Editor seems to set ALE as the default for that .xml file going forward.

提交回复
热议问题