链接类的Landroid /支持/ v4 / app /华生;失败——无法解析Lcom/actionbarsherlock/app/SherlockActivity的超类。

时间:2022-09-04 11:50:57

I have an android project that I was working on a few weeks ago it was working fine in my last attempt, but now the project all compiles fine, but while launching application, I am getting the following warning and it crashes my application.

我有一个android项目,我在几周前做的,它在我的最后一次尝试中运行良好,但是现在这个项目全部编译好了,但是在启动应用程序的时候,我得到了以下警告,并且它会使我的应用程序崩溃。

Unable to resolve superclass of Landroid/support/v4/app/Watson;
Link of class 'Landroid/support/v4/app/Watson;' failed

Unable to resolve superclass of 
Lcom/actionbarsherlock/app/SherlockFragmentActivity;

Please tell me how can i fix this. Thanks

请告诉我,我怎样才能解决这个问题。谢谢

1 个解决方案

#1


42  

I noticed that I had this problem after updating ADT Plugin Revision 22. This problem raised due to new Android Package named as Android Private Libraries is not included on my old projects.

我注意到我在更新ADT插件的版本22之后出现了这个问题。这个问题是由于Android的新程序包被命名为Android私人库而引起的。

I fix this issue by following the below steps:

我通过以下步骤来解决这个问题:

1.Right Click on project

1。右键单击项目

2.Build Path-> Configure Build Path -> Order and Export

2。构建路径->配置构建路径->顺序和导出。

3.Check the Android Private Libraries and click OK

3所示。检查Android的私有库并单击OK。

4.Clean the project

4所示。清洁项目

5.Rebuild the project

5。重建项目

#1


42  

I noticed that I had this problem after updating ADT Plugin Revision 22. This problem raised due to new Android Package named as Android Private Libraries is not included on my old projects.

我注意到我在更新ADT插件的版本22之后出现了这个问题。这个问题是由于Android的新程序包被命名为Android私人库而引起的。

I fix this issue by following the below steps:

我通过以下步骤来解决这个问题:

1.Right Click on project

1。右键单击项目

2.Build Path-> Configure Build Path -> Order and Export

2。构建路径->配置构建路径->顺序和导出。

3.Check the Android Private Libraries and click OK

3所示。检查Android的私有库并单击OK。

4.Clean the project

4所示。清洁项目

5.Rebuild the project

5。重建项目