SherlockActivity无法解析为Android中的类型 [英] SherlockActivity cannot be resolved to a type in android
问题描述
您好,我必须从 BBC新闻阅读器开发android BBc新闻阅读器应用程序
p>这里我必须从上面的链接导入这些应用程序并运行应用程序意味着我得到以下错误。我可以解决这些错误吗?请帮助我
错误是:
SherlockActivity无法解析为某种类型...我得到了
public class WidgetConfigActivity extends SherlockActivity {
ListView listView;
我还添加了库文件。
- 从此处下载ActionBarSherlock。
- 解压缩下载的文件并将项目导入到Eclipse中。
- 右键单击您的项目 - >属性
- 在Android-> Library部分点击添加
- 如果您正确添加了ActionBarSherlock库,您可以在其中找到
。 - 将它添加到项目中
检出此文件关于如何在eclipse中引用一个库项目。
编辑:
要移除 android-support-library
依赖性错误,请移除 android-support-v4.jar
文件存在于您项目的 libs 部分。
错误的原因是 ActionBarSherlock
已经有一个 android-support-v4.jar
以及库。所以这两个文件之间会产生冲突
Hi i have to develop android BBc news reader application from BBC NEWS READER
Here i have to import these app from above link and run the app means i get the following error.how can i resolve these error ??? please help me
The error is :
SherlockActivity cannot be resolved to a type...i got the error on below line...
public class WidgetConfigActivity extends SherlockActivity {
ListView listView;
I have added library file also.
- Download ActionBarSherlock from here.
- Unzip the downloaded file and import the project to Eclipse.
- Right-click on your project -> Properties
- In Android->Library section click Add
- If you added the ActionBarSherlock library correctly you can find it there.
- Add it your project
Checkout this documentation on how to reference a library project in eclipse.
EDIT:
To remove the android-support-library
dependancy error, remove the android-support-v4.jar
file present in the libs section of your project.
The reason for the error is that ActionBarSherlock
already has an android-support-v4.jar
along with the library. So there arises a conflict between the two files
这篇关于SherlockActivity无法解析为Android中的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!