得到'无法启动googlemap`错误

时间:2013-05-27 10:59:12

标签: android google-maps

当我运行我的应用程序加载谷歌地图时,它在logcat中显示以下内容。我已经生成了SHA1密钥和API密钥,并且还提供了清单文件中的所有权限。

05-27 10:50:45.344: E/Trace(1183): error opening trace file: No such file or directory (2) 05-27 10:50:45.844: W/dalvikvm(1183): VFY: unable to resolve static field 1164 (MapAttrs) in Lcom/google/android/gms/R$styleable; 05-27 10:50:45.844: D/dalvikvm(1183): VFY: replacing opcode 0x62 at 0x000e 05-27 10:50:45.864: D/AndroidRuntime(1183): Shutting down VM 05-27 10:50:45.864: W/dalvikvm(1183): threadid=1: thread exiting with uncaught exception (group=0x40a71930) 05-27 10:50:45.886: E/AndroidRuntime(1183): FATAL EXCEPTION: main 05-27 10:50:45.886: E/AndroidRuntime(1183): java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes(Unknown Source) 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.google.android.gms.maps.MapFragment.onInflate(Unknown Source) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.Activity.onCreateView(Activity.java:4716) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.view.LayoutInflater.inflate(LayoutInflater.java:466) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.Activity.setContentView(Activity.java:1881) 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.example.mapsgoogle.Map.onCreate(Map.java:12) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.Activity.performCreate(Activity.java:5104) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.ActivityThread.access$600(ActivityThread.java:141) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.os.Handler.dispatchMessage(Handler.java:99) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.os.Looper.loop(Looper.java:137) 05-27 10:50:45.886: E/AndroidRuntime(1183): at android.app.ActivityThread.main(ActivityThread.java:5041) 05-27 10:50:45.886: E/AndroidRuntime(1183): at java.lang.reflect.Method.invokeNative(Native Method) 05-27 10:50:45.886: E/AndroidRuntime(1183): at java.lang.reflect.Method.invoke(Method.java:511) 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 05-27 10:50:45.886: E/AndroidRuntime(1183): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 05-27 10:50:45.886: E/AndroidRuntime(1183): at dalvik.system.NativeStart.main(Native Method) 05-27 10:50:49.675: I/Process(1183): Sending signal. PID: 1183 SIG: 9

0 个答案:

没有答案