安卓开发错误:The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.

Posted oldmonk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安卓开发错误:The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.相关的知识,希望对你有一定的参考价值。

今天在使用低版本下的ActionBar,在继承ActionBarActivity时报了“The type Android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved. It is indirectly referenced from required .class files”错误,网上查了很久终于解决了。

问题根源:因为在复制项目的jar包时,把Eclipse下自带的android-support-v4.jar包复制到了‘android-support-v7-appcompat’ Library项目下,替换掉了原本的android-support-v4.jar,而Eclipse自带的版本较低,导致报错。

解决方案:当然把android-support-v4.jar替换成..\sdk\extras\android\support\v7\appcompat\libs下的android-support-v4.jar的啦。

PS:一时疏忽,导致很多时间都在查找解决报错问题,在此记录一下。

以上是关于安卓开发错误:The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.的主要内容,如果未能解决你的问题,请参考以下文章

The hierarchy of the type AnchorTag is inconsistent

The hierarchy of the type is inconsistent错误问题

The method xx from the type xx refers to the missing type List等问题的解决办法

Java:The hierarchy of the type is inconsistent错误

Linq------错误: Unable to determine the principal end of an association between the types

Pytorch 抛出错误 RuntimeError: result type Float can't be cast to the desired output type Long