当前位置 : 主页 > 编程语言 > java >

Inside Eclipse Android project run Java classes with main()

来源:互联网 收集:自由互联 发布时间:2022-08-10
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.

上一篇:[easyUI]datagrid用法
下一篇:没有了
网友评论