fatal error: Invalid layout of preloaded class
1 Answer
In case of an Android project, you have to remove Android Lib from the launch configuration for that specific class. Use the "walkthrough" below as a guide.
- Project->Properties->Run/Debug Settings;
- Select your Class and click "Edit";
- Open the tab "Classpath" and remove Android Lib from "Bootstrap Entries";
- Apply everything and Run the class again.
Hope this help you guys!
Bye.
本文介绍了解决Android项目中出现的“fatal error: Invalid layout of preloaded class”错误的方法。通过调整项目的运行配置,移除特定类路径中的Android库,可以有效解决此问题。

被折叠的 条评论
为什么被折叠?



