Android 截击2问题-冰淇淋三明治不被认可,也不是方法之一 试图导入一个与同事一起工作的项目的截击库,但在截击文件中,我得到了这个随机错误。

Android 截击2问题-冰淇淋三明治不被认可,也不是方法之一 试图导入一个与同事一起工作的项目的截击库,但在截击文件中,我得到了这个随机错误。,android,Android,这里是一个截图的情况 因此,当我将鼠标悬停在TrafficStats.setThreadStatsTag上时,会出现以下错误: The method setThreadStatsTag(int) is undefined for the type TrafficStats ICE_CREAM_SANDWICH cannot be resolved or is not a field 当我将鼠标悬停在Build.VERSION\u CODES.ICE\u CREAM\u SANDWICH上时

这里是一个截图的情况

因此,当我将鼠标悬停在TrafficStats.setThreadStatsTag上时,会出现以下错误:

The method setThreadStatsTag(int) is undefined for the type TrafficStats
ICE_CREAM_SANDWICH cannot be resolved or is not a field
当我将鼠标悬停在Build.VERSION\u CODES.ICE\u CREAM\u SANDWICH上时,出现以下错误:

The method setThreadStatsTag(int) is undefined for the type TrafficStats
ICE_CREAM_SANDWICH cannot be resolved or is not a field
我该怎么办

我读了一些关于ICS问题的相关帖子,它们都提到了manufest,但我认为那里没有问题:

<uses-sdk
    android:targetSdkVersion="19"
    android:minSdkVersion="14"/>

项目中的以下行。属性设置为19

target=android-19

这样,您使用的是最新版本的SDK,可能是根据API 12或更低版本进行构建。

您的构建目标未设置为API级别14或更高。这不是一个bug。
(在eclipse:Project=>Properties=>Android中,从较低的级别将目标设置为API 14)

谢谢,我试试看。现在我得到“无法解决目标-19”,但当我试图打开SDK管理器,它不会启动。。。当我把这件事弄清楚后,我会告诉你发生了什么:)