since today I'm not able to open my Android layout xml-Files in IntelliJ IDEA anymore. Other resources like styles and preferences work.
I don't mean the preview view, I only want to view the xml code of the layout files.
Thank's in advance for your help
This was happening to me as well. I couldn't open any layout XML file, but style files and AndroidManifest.xml opened correctly. I fixed this by disabling the Android Designer plugin in Settings/Plugins/Android Designer. Layout files are opening correctly now!
I'm hoping JetBrains will fix the root problem in a future update, but for now this workaround will suffice.
(I'm running IntelliJ IDEA 12.1.6 Build #IC-129.1359 on OS X 10.9 Mavericks)
Solution is that first go into the Settings/Plugins/Android Support and disable it and restart intelliJ and after restart again go into the same Settings/Plugins/Android Support and enable it. Your layout xml file will be open easily.
我确实删除了C:\\ Users {name} \\中的.android,.IntelliJIdea2017.2和.AndroidStudio3.0文件夹,现在可以打开.xml布局了。
首先通过Settings / Plugins / Android Support禁用Android Support,重新启动intelliJ,然后重新启动后进入Settings / Plugins / Android Support并启用它。如果不起作用,请通过Res打开新的布局;这是新的Android资源文件它为我工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.