gpt4 book ai didi

google-play-services - 为什么在上传 logcat 文件时出现 google play services lib 错误

转载 作者:行者123 更新时间:2023-12-01 13:47:24 25 4
gpt4 key购买 nike

谁能告诉我为什么会出现 Google Play 服务库错误。这是我的 logcat 文件:

01-20 19:11:56.505: D/dalvikvm(32169): open_cached_dex_file : /data/app/info.androidhive.googlemapsv2-2.apk /data/dalvik-cache/data@app@info.androidhive.googlemapsv2-2.apk@classes.dex
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)`

最佳答案

通过 SDK 管理器将您的 Google 存储库更新到版本 15 应该可以解决问题并消除对变通方法的需求。需要清理项目。

安卓开发工具包

issue 7432中也提到了这一点.

关于google-play-services - 为什么在上传 logcat 文件时出现 google play services lib 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34904004/

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