Hi, Great. It?s also one of my try, but I forgot it?s the key point.
However, I?m wondering why it matters, because armeabi should be a more general platform than armeabi-v7a for ARM devices. By the way, anyone succeed to build the sample Android app located at resource/csdk/connectivity? I got stuck there. Should I have additional steps than the?simpleserver one? Best Regard, === Yu-Hsin Hung, Electrical Engineering and Computer Science Undergraduate Honors Program, National Chiao-Tung Universiry, Hsinchu 300, Taiwan (Phone) +886911012113 / +16262412272 (Email)? hungys at hotmail.com (Website)? http://hungys.logdown.com/ === ? 2015?7?8? ? 20:32:46, Paraschiv, Andra (andra.paraschiv at intel.com) ?: Hi, ? I rebuild iotivity for armeabi-v7a arch instead of armeabi and now simpleserver works. Thanks for the possible solution to this issue, I?ll try it to see if it works. ? Thank you, Andra ? From: Yu-Hsin Hung [mailto:[email protected]] Sent: Wednesday, July 08, 2015 2:53 PM To: Paraschiv, Andra Subject: Re: [dev] Error running sample app (simpleserver) for Android ? Hi, ? I also had this issue these few days, but I?m not sure which modification does solve my issue. ? Try add following configurations into your gradle file: ? sourceSets { ? ? main { ? ? ? ? jniLibs.srcDirs = [] ? ? } } ? Not sure if works, but you can make a try. Good lcuk! ? ? Best Regard, === Yu-Hsin Hung, Electrical Engineering and Computer Science Undergraduate Honors Program, National Chiao-Tung Universiry, Hsinchu 300, Taiwan (Phone) +886911012113 / +16262412272 (Email)?hungys at hotmail.com (Website)?http://hungys.logdown.com/ === ? ? 2015?7?8?? 19:24:18, Paraschiv, Andra (andra.paraschiv at intel.com) ?: Hi, I am trying to run the simpleserver sample app on Android. I have followed the instructions in iotivity/android/BuildInstructionsForAndroidAPI.txt. The build works, but when I run the app on a Nexus 5 (Android 5.1.1) I get the following error: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.iotivity.base.examples.simpleserver-1/base.apk"],nativeLibraryDirectories=[/data/app/org.iotivity.base.examples.simpleserver-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "liboc.so" at java.lang.Runtime.loadLibrary(Runtime.java:366) at java.lang.System.loadLibrary(System.java:988) at org.iotivity.base.OcRepresentation.<clinit>(OcRepresentation.java:35) at org.iotivity.base.examples.simpleserver.SimpleServer.onCreate(SimpleServer.java:73) It seems that the *.so libs are not found even though they have been included in the apk. I am using the iotivity-armeabi-base-debug.aar package. Could anyone help me fix this? Thank you, Andra _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150708/2b312b0d/attachment.html>
