当前位置: 代码迷 >> Eclipse >> 安卓:FATAL EXCEPTION: main异常(新手求指导!)
  详细解决方案

安卓:FATAL EXCEPTION: main异常(新手求指导!)

热度:94   发布时间:2016-04-23 00:30:19.0
安卓:FATAL EXCEPTION: main错误(新手求指导!!!!!!!!)
03-26 08:25:32.689: E/AndroidRuntime(1848): FATAL EXCEPTION: main
03-26 08:25:32.689: E/AndroidRuntime(1848): java.lang.ExceptionInInitializerError
03-26 08:25:32.689: E/AndroidRuntime(1848):  at com.gps.zhouji.Manager.CacheManager.onCreate(CacheManager.java:191)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.app.ActivityThread.access$1300(ActivityThread.java:141)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.os.Looper.loop(Looper.java:137)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at android.app.ActivityThread.main(ActivityThread.java:5041)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at java.lang.reflect.Method.invokeNative(Native Method)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at java.lang.reflect.Method.invoke(Method.java:511)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at dalvik.system.NativeStart.main(Native Method)
03-26 08:25:32.689: E/AndroidRuntime(1848): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapSDK_v2_2_0 from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.gps.zhouji-1.apk,libraryPath=/data/app-lib/com.gps.zhouji-1]: findLibrary returned null
03-26 08:25:32.689: E/AndroidRuntime(1848):  at java.lang.Runtime.loadLibrary(Runtime.java:365)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at java.lang.System.loadLibrary(System.java:535)
03-26 08:25:32.689: E/AndroidRuntime(1848):  at com.baidu.mapapi.BMapManager.<clinit>(Unknown Source)
03-26 08:25:32.689: E/AndroidRuntime(1848):  ... 13 more
运行项目后就出现这些错误了,怎么破啊,求大神指导!!!!!!!!!!!!!
------解决方案--------------------
BaiduMapSDK_v2_2_0 配置有问题吧
把百度地图的jar包和so文件copy到libs目录下
然后
eclipse->build path->add jar
  相关解决方案