找不到方法 AdvertisingIdClient.getAdvertisingIdInfo
Could not find method AdvertisingIdClient.getAdvertisingIdInfo
在我的魅族MX3上运行Android投影时,遇到了题目中提到的问题。
我的 logcat 输出是:
04-23 01:05:01.855: I/dalvikvm(18549): Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo, referenced from method com.myapp.deviceinfo.AndroidDeviceInfo.run
04-23 01:05:01.855: W/dalvikvm(18549): VFY: unable to resolve static method 14581: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;.getAdvertisingIdInfo (Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
04-23 01:05:01.855: D/dalvikvm(18549): VFY: replacing opcode 0x71 at 0x0005
04-23 01:05:01.885: W/dalvikvm(18549): VFY: unable to resolve exception class 2144 (Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;)
04-23 01:05:01.885: W/dalvikvm(18549): VFY: unable to find exception handler at addr 0xa4
04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejected Lcom/myapp/deviceinfo/AndroidDeviceInfo;.run ()V
04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejecting opcode 0x0d at 0x00a4
04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejected Lcom/myapp/deviceinfo/AndroidDeviceInfo;.run ()V
04-23 01:05:01.885: W/dalvikvm(18549): Verifier rejected class Lcom/myapp/deviceinfo/AndroidDeviceInfo;
我们将不胜感激。
是个大问题,让我愣了一天
我已经尝试了所有方法,例如 Proguard 编辑、更改库、更改上下文,但这解决了问题:简单更新到新的 SDK 构建版本 22.0.1;这解决了问题。
在我的魅族MX3上运行Android投影时,遇到了题目中提到的问题。
我的 logcat 输出是:
04-23 01:05:01.855: I/dalvikvm(18549): Could not find method com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo, referenced from method com.myapp.deviceinfo.AndroidDeviceInfo.run 04-23 01:05:01.855: W/dalvikvm(18549): VFY: unable to resolve static method 14581: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;.getAdvertisingIdInfo (Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info; 04-23 01:05:01.855: D/dalvikvm(18549): VFY: replacing opcode 0x71 at 0x0005 04-23 01:05:01.885: W/dalvikvm(18549): VFY: unable to resolve exception class 2144 (Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;) 04-23 01:05:01.885: W/dalvikvm(18549): VFY: unable to find exception handler at addr 0xa4 04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejected Lcom/myapp/deviceinfo/AndroidDeviceInfo;.run ()V 04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejecting opcode 0x0d at 0x00a4 04-23 01:05:01.885: W/dalvikvm(18549): VFY: rejected Lcom/myapp/deviceinfo/AndroidDeviceInfo;.run ()V 04-23 01:05:01.885: W/dalvikvm(18549): Verifier rejected class Lcom/myapp/deviceinfo/AndroidDeviceInfo;
我们将不胜感激。
是个大问题,让我愣了一天
我已经尝试了所有方法,例如 Proguard 编辑、更改库、更改上下文,但这解决了问题:简单更新到新的 SDK 构建版本 22.0.1;这解决了问题。