gpt4 book ai didi

android - 更新Android SDK Tool REV 22 "Unable to resolve superclass of L"后出错

转载 作者:可可西里 更新时间:2023-11-01 18:56:38 25 4
gpt4 key购买 nike

昨天的项目还不错,但是今天(REV 22)更新Sdk tools和ADT时,运行项目时出现“Unable to resolve superclass of L...”的错误。

我的项目使用 ActionbarSherlock 和 SlidingMenu。

我已经试过了:

  1. 将外部 jar 复制到我项目的“libs”文件夹中。 (我以前已经这样做过)
  2. Properties->Java Build Path->Projects 并在那里添加库项目。
  3. 清理和重建
  4. 重置电脑或IDE
  5. 尝试其他也包含项目库的项目
  6. 关注Class not found error after updating ADT and Android sdk tools to latest ver 22

但都失败了。

整个Logcat如下:

05-17 06:53:50.087: E/Trace(949): error opening trace file: No such file or directory (2)
05-17 06:53:50.188: W/dalvikvm(949): Unable to resolve superclass of Lcom/qdnews/utils/AsyncImageLoaderX$1; (50)
05-17 06:53:50.197: W/dalvikvm(949): Link of class 'Lcom/qdnews/utils/AsyncImageLoaderX$1;' failed
05-17 06:53:50.197: E/dalvikvm(949): Could not find class 'com.qdnews.utils.AsyncImageLoaderX$1', referenced from method com.qdnews.utils.AsyncImageLoaderX.<init>
05-17 06:53:50.207: W/dalvikvm(949): VFY: unable to resolve new-instance 177 (Lcom/qdnews/utils/AsyncImageLoaderX$1;) in Lcom/qdnews/utils/AsyncImageLoaderX;
05-17 06:53:50.207: D/dalvikvm(949): VFY: replacing opcode 0x22 at 0x001b
05-17 06:53:50.207: I/dalvikvm(949): Could not find method android.support.v4.util.LruCache.put, referenced from method com.qdnews.utils.AsyncImageLoaderX.addBitmapToCache
05-17 06:53:50.207: W/dalvikvm(949): VFY: unable to resolve virtual method 112: Landroid/support/v4/util/LruCache;.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
05-17 06:53:50.217: D/dalvikvm(949): VFY: replacing opcode 0x6e at 0x0007
05-17 06:53:50.237: I/dalvikvm(949): Could not find method android.support.v4.util.LruCache.get, referenced from method com.qdnews.utils.AsyncImageLoaderX.getBitmapFromCache
05-17 06:53:50.237: W/dalvikvm(949): VFY: unable to resolve virtual method 111: Landroid/support/v4/util/LruCache;.get (Ljava/lang/Object;)Ljava/lang/Object;
05-17 06:53:50.237: D/dalvikvm(949): VFY: replacing opcode 0x6e at 0x0005
05-17 06:53:50.257: W/dalvikvm(949): Unable to resolve superclass of Lcom/qdnews/utils/AsyncImageLoaderX$1; (50)
05-17 06:53:50.257: W/dalvikvm(949): Link of class 'Lcom/qdnews/utils/AsyncImageLoaderX$1;' failed
05-17 06:53:50.267: D/dalvikvm(949): DexOpt: unable to opt direct call 0x025a at 0x1d in Lcom/qdnews/utils/AsyncImageLoaderX;.<init>
05-17 06:53:50.277: D/AndroidRuntime(949): Shutting down VM

最佳答案

在第 22 版中,他们添加了“Android 私有(private)库”。

对于每个相关的项目(包括 actionbarsherlock 项目),右键单击它 -> Properties -> Java Build Path -> Order and Export -> Check Android Private Libraries

关于android - 更新Android SDK Tool REV 22 "Unable to resolve superclass of L"后出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16603396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com