如何解决 Android 中转换为 Dalvik 格式失败并出现错误 1 的问题?
我编写了一个使用 TabHost
的示例应用程序。我收到以下错误:
转换为 Dalvik 格式失败,错误 1
如何解决上述问题?
I have written a sample application on using TabHost
. I am getting the following error:
Conversion to Dalvik format failed with error 1
How do I resolve the above issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,更新到最新的 ADT。我遇到了同样的问题,这是由工具中的错误引起的。
其次,清理受影响的项目并重试。
First, update to the very latest ADT. I had the identical issue and it was caused by a bug in the tools.
Second, clean the affected project and try again.
我收到此消息是因为我已手动将 android.jar 添加到构建库中,因为它说找不到 android 库。修复方法是...
从构建库中删除 android.jar
右键单击该项目,转到“Android Tools”,然后选择“Fix项目属性”
希望这会有所帮助。
I was getting this because I had manually added android.jar to the build libraries because it was saying it wasn't finding the android libraries. The fix was to...
Remove android.jar from the build libraries
Right click on the project, go to "Android Tools", and select "Fix Project Properties"
Hope this helps.