Actionbarsherlock的NoClassDefFoundError com.actionbarsherlock.R $设置样式

编程入门 行业动态 更新时间:2024-10-24 15:27:04
本文介绍了Actionbarsherlock的NoClassDefFoundError com.actionbarsherlock.R $设置样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我迁移我的code使用Actionbarsherlock。我做了所有我需要的code适应与我的项目编译好,没有错误,但我得到了以下异常:

I am migrating my code to use Actionbarsherlock. I have made all the code adaption that I need to and my project compiles fine with no errors, however I get the following exception:

java.lang.NoClassDefFoundError的:com.actionbarsherlock.R $设置样式 在com.actionbarsherlock.internal.ActionbarSherlockCompat.generateLayout(ActionbarSherlockCompat.java 1002)

java.lang.NoClassDefFoundError: com.actionbarsherlock.R$Styleable at com.actionbarsherlock.internal.ActionbarSherlockCompat.generateLayout(ActionbarSherlockCompat.java 1002)

我使用的动作条福尔摩斯的4.1版本。当第一次活动开始,每次我得到这个例外。我已清理和重建项目,检查了我的buildpaths,并不能找到什么是失踪。 Anyhelp将是巨大的!

I am using version 4.1 of actionbar sherlock. I get this exception when the first activity starts every time. I have cleaned and rebuild the project, checked my buildpaths, and can not find what is missing. Anyhelp would be great!!!

推荐答案

如果您使用的是Eclipse的开发环境与ADT插件版本0.9.7或更高版本,您可以包括 ActionBarSherlock 作为库项目。创建使用库/文件夹中现有的源Eclipse的一个新的Andr​​oid项目。然后,在你的项目属性,添加在安卓类别的库部分所创建的项目。

If you’re using the Eclipse Development Environment with the ADT plugin version 0.9.7 or greater you can include ActionBarSherlock as a library project. Create a new Android project in Eclipse using the library/ folder as the existing source. Then, in your project properties, add the created project under the ‘Libraries’ section of the ‘Android’ category.

用户手册剩下的就是这里。

The rest of the user manual is here.

更多推荐

Actionbarsherlock的NoClassDefFoundError com.actionbarsherlock.R $设置样式

本文发布于:2023-05-25 10:54:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226602.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:样式   Actionbarsherlock   NoClassDefFoundError   actionbarsherlock

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!