android工程下不能运行java main程序的解决方法
时间:2023-06-23 21:54:08
右击有main方法的类
===> Run as
===> Run Configurations
===>双击java application
===> 单击有main方法的类
===>选中classpath选项卡
===> remove掉Bootstrap Entries下的android.jar
===> 然后点击advanced
===> Add Library
===>JRE System Library
===>next
===>最后finish
===>Run
标签:android,java,main
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
C# using三种使用方法
2023-05-02 20:18:47
java 二进制数据与16进制字符串相互转化方法
2023-04-24 15:57:00
详解JAVA里面获取map的key和value的方法
2023-04-27 03:11:50
java虚拟机原理:Class字节码二进制文件分析
2022-02-06 09:02:33
![](https://img.aspxhome.com/file/2023/6/101946_0s.jpg)
Java中Cookie和Session详解及区别总结
2022-08-24 21:55:10
java实现简单扫雷游戏
2022-09-15 13:48:11
C#静态方法的使用
2022-05-19 06:45:09
android开发教程之android的handler使用方法
2022-04-29 08:25:43
![](https://img.aspxhome.com/file/2023/4/130434_0s.jpg)
Android 通过productFlavors实现多渠道打包方法示例
2022-08-27 16:04:35
![](https://img.aspxhome.com/file/2023/5/91715_0s.png)
MyBatis使用雪花ID的实现
2023-06-09 16:26:23
Android仿腾讯视频实现悬浮窗效果
2021-06-16 00:49:23
![](https://img.aspxhome.com/file/2023/8/110728_0s.gif)
java selenium Selenium IDE介绍及用法
2023-11-21 06:41:22
![](https://img.aspxhome.com/file/2023/7/58717_0s.gif)
C#静态构造函数用法实例分析
2022-03-18 10:32:34
SpringBoot全局异常处理与定制404页面的方法
2021-08-07 18:54:56
![](https://img.aspxhome.com/file/2023/9/64759_0s.png)
使用BufferedReader读取本地文件的操作
2021-10-15 03:22:47
![](https://img.aspxhome.com/file/2023/2/103982_0s.png)
JAVA多线程之实现用户任务排队并预估排队时长
2022-03-26 03:06:20
![](https://img.aspxhome.com/file/2023/1/80941_0s.gif)
android图片转换器示例
2022-02-16 14:27:01
配置Android SDK
2023-12-05 09:57:29
![](https://img.aspxhome.com/file/2023/4/102614_0s.png)
Java基于注解的Excel导出方式
2021-12-31 04:55:08
Eclipse运行android项目报错Unable to build: the file dx.jar was not loaded from the SDK folder的解决办法
2023-06-14 15:28:30