2016-01-20 56 views
2

任何人都可以告訴我爲什麼谷歌播放服務lib錯誤正在發生。這是我的logcat文件:爲什麼谷歌播放服務lib錯誤發生時上傳logcat文件

01-20 19:11:56.505: D/dalvikvm(32169): open_cached_dex_file : /data/app/info.androidhive.googlemapsv2-2.apk /data/dalvik-cache/[email protected]@[email protected] 
01-20 19:11:56.526: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_liteMode 
01-20 19:11:56.526: W/dalvikvm(32169): VFY: unable to resolve static field 1484 (MapAttrs_liteMode) in Lcom/google/android/gms/R$styleable; 
01-20 19:11:56.526: D/dalvikvm(32169): VFY: replacing opcode 0x60 at 0x00af 
01-20 19:11:56.527: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_liteMode 
01-20 19:11:56.527: I/dalvikvm(32169): DexOpt: unable to optimize static field ref 0x05cc at 0xb7 in Lcom/google/android/gms/maps/GoogleMapOptions;.createFromAttributes 
01-20 19:11:56.527: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_uiMapToolbar 
01-20 19:11:56.527: I/dalvikvm(32169): DexOpt: unable to optimize static field ref 0x05cf at 0xc0 in Lcom/google/android/gms/maps/GoogleMapOptions;.createFromAttributes 
01-20 19:11:56.527: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_uiMapToolbar 
01-20 19:11:56.527: I/dalvikvm(32169): DexOpt: unable to optimize static field ref 0x05cf at 0xc8 in Lcom/google/android/gms/maps/GoogleMapOptions;.createFromAttributes 
01-20 19:11:56.527: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_ambientEnabled 
01-20 19:11:56.527: I/dalvikvm(32169): DexOpt: unable to optimize static field ref 0x05c6 at 0xd1 in Lcom/google/android/gms/maps/GoogleMapOptions;.createFromAttributes 
01-20 19:11:56.527: D/dalvikvm(32169): DexOpt: couldn't find static field Lcom/google/android/gms/R$styleable;.MapAttrs_ambientEnabled 
01-20 19:11:56.527: I/dalvikvm(32169): DexOpt: unable to optimize static field ref 0x05c6 at 0xd9 in Lcom/google/android/gms/maps/GoogleMapOptions;.createFromAttributes 
01-20 19:11:56.527: D/AndroidRuntime(32169): Shutting down VM 
01-20 19:11:56.527: W/dalvikvm(32169): threadid=1: thread exiting with uncaught exception (group=0x414299a8) 
01-20 19:11:56.527: E/test(32169): Exception 
01-20 19:11:56.530: E/AndroidRuntime(32169): FATAL EXCEPTION: main 
01-20 19:11:56.530: E/AndroidRuntime(32169): java.lang.NoSuchFieldError: com.google.android.gms.R$styleable.MapAttrs_liteMode 
01-20 19:11:56.530: E/AndroidRuntime(32169): at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.Activity.onCreateView(Activity.java:4794) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:280) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.Activity.setContentView(Activity.java:1899) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at info.androidhive.googlemapsv2.MainActivity.onCreate(MainActivity.java:38) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.Activity.performCreate(Activity.java:5182) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.ActivityThread.access$600(ActivityThread.java:156) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.os.Handler.dispatchMessage(Handler.java:99) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.os.Looper.loop(Looper.java:153) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at android.app.ActivityThread.main(ActivityThread.java:5299) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at java.lang.reflect.Method.invokeNative(Native Method) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at java.lang.reflect.Method.invoke(Method.java:511) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 
01-20 19:11:56.530: E/AndroidRuntime(32169): at dalvik.system.NativeStart.main(Native Method)` 
+0

我可以知道您使用的Google Play服務的版本是否可以提供有關錯誤日誌的更多詳細信息? –

+0

這是我在我的應用程序 8487000中使用的版本,完整的logcat超出了我已經提供的版本。 –

回答

1

通過SDK管理器更新您的谷歌存儲庫15版本應該解決的問題,並消除了解決方法的需要。項目乾淨是必需的。

Android SDK中

issue 7432也被提及。

+0

感謝您的答覆。它工作正常 –