“Landroid / support / v4 / app / Watson”课程的链接;失败 - 无法解析Lcom / actionbarsherlock / app / SherlockActivity的超类

时间:2013-05-21 06:41:32

标签: android classnotfoundexception android-logcat

我有一个我几周前工作的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;

请告诉我如何解决这个问题。 感谢

1 个答案:

答案 0 :(得分:42)

我注意到在更新ADT插件修订版22之后我遇到了这个问题。由于我的旧项目中没有包含名为Android私有库的新Android软件包引发的这个问题。

我按照以下步骤解决了这个问题:

1.右键单击项目

2.Build Path->配置构建路径 - >订单和出口

3.检查Android私有库,然后单击确定

4.清理项目

5.重建项目