gpt4 book ai didi

android - commonsware 书中的 ActionBarsherlock 问题

转载 作者:行者123 更新时间:2023-11-30 04:06:19 25 4
gpt4 key购买 nike

在 commonsware 书籍教程 #6 中,我严格按照说明进行操作。我创建了包含 zip 下载中\library 目录内容的并行目录。我确保 empublite 项目处于合规级别 1.6。我将 ActionBarSherlock 添加到工作区,我得到“未找到标记 ID 170”,我注意到 AndroidManifest.xml 文件的内容已被清除为零。

我已经阅读了此处的另一篇文章并重新阅读了所有说明。控制台错误消息是...

2012-07-21 16:53:32 - ActionBarSherlock] Parser exception for /ActionBarSherlock/AndroidManifest.xml: Premature end of file.

我做错了什么?谢谢,院长

最佳答案

是的,说明中存在缺陷。

如果您打算使用 Eclipse,请不要将 ActionBarSherlock 的源代码直接放在您的工作区中,这正是说明所暗示的。当您将代码导入 Eclipse 时,会出现一个复选框,您可以选中该复选框以“将文件复制到工作区”——改为使用它。

Eclipse 不喜欢将不在 Eclipse 项目中的代码加载到 Eclipse 工作区中,代码在工作区目录中开始。只需暂时将 library/ 解压到其他地方(例如,您的桌面)。

我很抱歉。


引用the errata notice I just filed :

Page 211 has incorrect Eclipse instructions for adding ActionBarSherlock. Skip the second paragraph of Step #1 ("For the purposes..."). Instead, unpack the library/ directory somewhere away from your Eclipse workspace (e.g., on your desktop).

关于android - commonsware 书中的 ActionBarsherlock 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11596759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com