无法在Android上运行谷歌地图项目

时间:2014-08-30 19:56:55

标签: android google-maps android-logcat

我一直在尝试在我的项目上实施Google地图,因为到目前为止我是新来的,我跟着这个:http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/ 但问题发生在我的项目即使在这之后也没有运行。
虽然它的开放应用程序在开放时崩溃了。你能给出一些建议吗?

继承logcat错误 -

08-30 15:54:02.440: D/AndroidRuntime(912): Shutting down VM
08-30 15:54:02.440: W/dalvikvm(912): threadid=1: thread exiting with uncaught exception (group=0xb2a44ba8)
08-30 15:54:02.540: E/AndroidRuntime(912): FATAL EXCEPTION: main
08-30 15:54:02.540: E/AndroidRuntime(912): Process: info.androidhive.googlemapsv2, PID: 912
08-30 15:54:02.540: E/AndroidRuntime(912): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{info.androidhive.googlemapsv2/info.androidhive.googlemapsv2.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.googlemapsv2.MainActivity" on path: DexPathList[[zip file "/data/app/info.androidhive.googlemapsv2-1.apk"],nativeLibraryDirectories=[/data/app-lib/info.androidhive.googlemapsv2-1, /system/lib]]
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread.access$800(ActivityThread.java:135)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.os.Handler.dispatchMessage(Handler.java:102)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.os.Looper.loop(Looper.java:136)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread.main(ActivityThread.java:5017)
08-30 15:54:02.540: E/AndroidRuntime(912):  at java.lang.reflect.Method.invokeNative(Native Method)
08-30 15:54:02.540: E/AndroidRuntime(912):  at java.lang.reflect.Method.invoke(Method.java:515)
08-30 15:54:02.540: E/AndroidRuntime(912):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-30 15:54:02.540: E/AndroidRuntime(912):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-30 15:54:02.540: E/AndroidRuntime(912):  at dalvik.system.NativeStart.main(Native Method)
08-30 15:54:02.540: E/AndroidRuntime(912): Caused by: java.lang.ClassNotFoundException: Didn't find class "info.androidhive.googlemapsv2.MainActivity" on path: DexPathList[[zip file "/data/app/info.androidhive.googlemapsv2-1.apk"],nativeLibraryDirectories=[/data/app-lib/info.androidhive.googlemapsv2-1, /system/lib]]
08-30 15:54:02.540: E/AndroidRuntime(912):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-30 15:54:02.540: E/AndroidRuntime(912):  at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
08-30 15:54:02.540: E/AndroidRuntime(912):  at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
08-30 15:54:02.540: E/AndroidRuntime(912):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
08-30 15:54:02.540: E/AndroidRuntime(912):  ... 11 more
08-30 15:54:06.140: I/Process(912): Sending signal. PID: 912 SIG: 9

0 个答案:

没有答案