Dx 未指定类文件 转换为 Dalvik 格式失败,错误 1
我知道这是一个已经完蛋的话题,我可能不应该重复它,但这非常烦人,因为我已经尝试了之前概述的所有方法来解决它,但它仍然给我一个错误。
我尝试清理项目,但不起作用 尝试使用 -clean 选项重新启动 Eclipse,但不起作用 尝试重新安装 Eclipse - 不起作用 尝试添加虚拟引用并删除它,但不起作用
每次我执行干净操作并且 R.Java 消失时,我都会收到一条错误消息,说在 gen/R.java 中找不到类文件,然后它会自动重新出现,并且出现转换错误。
我正在尝试解决其他困扰我的问题,而这个错误让我很烦恼,因为我所做的一切都不起作用。
有人有任何替代建议吗?
我可以像普通java程序一样编译它并在命令提示符中使用adb.exe推送它吗?
I know this is a done to death topic, and I probably shouldn't be repeating it, but it is extremely annoying, because I've tried all the methods outlined before to resolve it and it still gives me an error.
I tried to clean the project, doesn't work
Tried to restart eclipse with -clean option, doesn't work
Tried to resintall eclipse - doesn't work
Tried to add a dummy reference and delete it, doesn't work
Everytime I do a clean and R.Java disappears I get an error saying no classfile found in gen/R.java then it automatically reappears and I get a conversion error.
I'm trying to fix something else which is troubling me and this error is just getting on my nerves because nothing I do works.
Does anyone have any alternate suggestions?
Can I just compile it like a normal java program and push it using adb.exe in the command prompt?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。修复方法:转到项目属性 ->安卓->将目标更改为 Android 2.2(或更早版本)。单击“应用”并尝试再次启动它。
I had the same problem. The fix: Go to project properties -> Android -> Change target to Android 2.2 (or older). Click apply and try to launch it again.
我也有同样的问题。我所做的是清理项目,然后使用选项:Android 工具 -> 修复项目属性。这让我的问题消失了。
I also had the same problem. What I did was to clean the project and then use the option: Android tools ->fix project properties. That made my problem go away.