0

I am trying to import this library in my android project

https://github.com/twotoasters/clusterkraf

I imported it, and then added it to build path, then when I run my app, it crashes with this log:

08-05 17:50:31.268: E/AndroidRuntime(29392): FATAL EXCEPTION: main
08-05 17:50:31.268: E/AndroidRuntime(29392): java.lang.NoClassDefFoundError: com.twotoasters.clusterkraf.InputPoint
08-05 17:50:31.268: E/AndroidRuntime(29392):    at com.example.idsconnect.ActivityMap.initClusterkraf(ActivityMap.java:165)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at com.example.idsconnect.AsyncLoadMapLocations.onPostExecute(AsyncLoadMapLocations.java:61)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at com.example.idsconnect.AsyncLoadMapLocations.onPostExecute(AsyncLoadMapLocations.java:1)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.os.AsyncTask.finish(AsyncTask.java:631)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.os.AsyncTask.access$600(AsyncTask.java:177)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.os.Handler.dispatchMessage(Handler.java:99)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.os.Looper.loop(Looper.java:137)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at android.app.ActivityThread.main(ActivityThread.java:4950)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at java.lang.reflect.Method.invokeNative(Native Method)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at java.lang.reflect.Method.invoke(Method.java:511)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
08-05 17:50:31.268: E/AndroidRuntime(29392):    at dalvik.system.NativeStart.main(Native Method)

enter image description here

Does anyone know how to fix this?

Thanks.

4

2 回答 2

0

google-play-services.jar除了 google-play-services_lib 之外,您是否尝试过导入?我认为这一切都会被 clusterkraf 库处理,但值得一试(可以在这里找到:)google-play-services_lib/libs/google-play-services.jar

新的 Google Maps (v2) 集成令人头疼:(

于 2013-08-06T15:07:54.803 回答
0

我想您可能需要将 Google Play Services 库添加到您的项目中。有关更多详细信息,请参见此处

如果没有所有详细信息,问题可能是InputPoint该类正在从包中导入类,该com.google.android.gms包是 Google Play 服务 SDK 的一部分。因此,如果这些课程不存在,您将遇到问题。

于 2013-08-05T22:09:39.930 回答