android工程下不能运行java main程序的解决方法
程序员文章站
2022-06-04 12:18:07
右击有main方法的类
===> run as
===> run configurations
===>双击java applic...
右击有main方法的类
===> run as
===> run configurations
===>双击java application
===> 单击有main方法的类
===>选中classpath选项卡
===> remove掉bootstrap entries下的android.jar
===> 然后点击advanced
===> add library
===>jre system library
===>next
===>最后finish
===>run