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.
补充:将在eclipse javaEE中正常运行的代码copy到eclipse for Android,报错“Invalid layout of preloaded class”,用以上方法已解决。