Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经编写了一个关于使用TabHost. 我收到以下错误:
TabHost
转换为 Dalvik 格式失败,错误 1
我该如何解决上述问题?
首先,更新到最新的 ADT。我有同样的问题,它是由工具中的错误引起的。
其次,清理受影响的项目,然后重试。
我得到这个是因为我手动将 android.jar 添加到构建库中,因为它说它没有找到 android 库。解决方法是...
从构建库中删除 android.jar
右键单击项目,转到“Android 工具”,然后选择“修复项目属性”
希望这可以帮助。