我正在尝试将iqengines sdk集成到我的应用中(https://github.com/iqengines/iqe-android-sdk)。我开始使用他们无法正常运行的演示应用程序。安装了Android NDK和Cygwin 1.7。我还在eclipse子字符串和修改的API密钥(https://github.com/iqengines/iqe-android-sdk#building-the-demo-app-)下添加了ANDROID_NDK_ROOT。仍然应用程序崩溃。 这是堆栈跟踪。
04-08 14:32:25.181: E/AndroidRuntime(7610): FATAL EXCEPTION: main
04-08 14:32:25.181: E/AndroidRuntime(7610): java.lang.ExceptionInInitializerError
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.iqengines.sdk.IQE.initIqSdk(IQE.java:249)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.iqengines.sdk.IQE.(IQE.java:224)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.iqengines.demo.DemoActivity.initIqSdk(DemoActivity.java:161)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.iqengines.demo.DemoActivity.onCreate(DemoActivity.java:133)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.Activity.performCreate(Activity.java:5206)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.ActivityThread.access$700(ActivityThread.java:140)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.os.Handler.dispatchMessage(Handler.java:99)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.os.Looper.loop(Looper.java:137)
04-08 14:32:25.181: E/AndroidRuntime(7610): at android.app.ActivityThread.main(ActivityThread.java:4935)
04-08 14:32:25.181: E/AndroidRuntime(7610): at java.lang.reflect.Method.invokeNative(Native Method)
04-08 14:32:25.181: E/AndroidRuntime(7610): at java.lang.reflect.Method.invoke(Method.java:511)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
04-08 14:32:25.181: E/AndroidRuntime(7610): at dalvik.system.NativeStart.main(Native Method)
04-08 14:32:25.181: E/AndroidRuntime(7610): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load iqindex: findLibrary returned null
04-08 14:32:25.181: E/AndroidRuntime(7610): at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-08 14:32:25.181: E/AndroidRuntime(7610): at java.lang.System.loadLibrary(System.java:535)
04-08 14:32:25.181: E/AndroidRuntime(7610): at com.iqengines.sdk.IQLocal.(IQLocal.java:34)
04-08 14:32:25.181: E/AndroidRuntime(7610): ... 18 more
答案 0 :(得分:0)
我认为这是因为与NDK和Windows 8相关的问题。我切换到Ubuntu并且工作正常。