In case of anAndroidproject, you have toremoveAndroid Libfrom the launch configuration for that specific class. Use the "walkthrough" below as a guide. Project-Properties-Run/Debug Settings; Select your Classand click "Edit"; Open the tab "
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 Classand click "Edit";
- Open the tab "Classpath" andremoveAndroid Libfrom "Bootstrap Entries";
- Applyeverything andRunthe class again.
OR
You can get past this by using the Run As -> Android Application. Possibly check the Run configuration for other issues.