試圖運行Android樣本「事件和動作」從https://allseenalliance.org/framework/downloadAlljoyn Android的事件和行爲樣本不工作
下載「核心SDK - 調試」下載,其在bin文件夾樣品eventaction和.apk文件。
安裝了它,但不工作。有人能夠運行它嗎?
編輯:異常的logcat的:
08-29 09:06:16.978 29314 29328 E AndroidRuntime: Process: org.allseen.sample.eventaction, PID: 29314 08-29 09:06:16.978 29314 29328 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__exidx_end" referenced by "/data/app/org.allseen.sample.eventaction-1/lib/arm/libMyAllJoynCode.so"...
我曾嘗試使用Android NDK構建庫MyAllJoynCode.so,但我不能建造它。我得到以下例外
r[email protected]:~/alljoyn/core/alljoyn/alljoyn_core/samples/eventaction/Android# ndk-build [arm64-v8a] Compile++ : MyAllJoynCode <= AndroidJNIBridge.cc In file included from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/atomic.h:30:0, from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:38, from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30, from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32, from /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34, from jni/event/AndroidJNIBridge.cc:19: /root/alljoyn/core/alljoyn/build/linux/x86_64/debug/dist/cpp/inc/qcc/posix/atomic.h:30:25: fatal error: sys/atomics.h: No such file or directory #include ^ compilation terminated. /root/android-ndk-r12b/android-ndk-r12b/build/core/build-binary.mk:474: recipe for target 'obj/local/arm64-v8a/objs/MyAllJoynCode/event/AndroidJNIBridge.o' failed make: *** [obj/local/arm64-v8a/objs/MyAllJoynCode/event/AndroidJNIBridge.o] Error 1
請提供您分享在安裝APK的過程中出現了問題。如果APK可以安裝成功,但應用程序崩潰,請編輯後用更多的日誌信息的問題logcat的 – Lino
。 – Jayasagar
感謝。您使用哪種AllJoyn版本? – Lino