Hey all, I'm designing an app which uses both the Notification consumer and the Easy Setup service. I'm having some trouble including the necessary libraries.
I'm following the guide on the Wiki: Using IoTivity Base Android API in an Android Studio Project <https://wiki.iotivity.org/android_build_instructions#using_iotivity_base_android_api_in_an_android_studio_project> I built IoTivity for Android and made modules of the created .aar files. Including the iotivity-base works fine (using OcPlatform etc). If I add the notification library (iotivity-x86-notification-service-release.aar) I get the following build error: Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK *lib/x86/libocstack-jni.so* I can fix this error by adding the following to app/build.gradle packagingOptions { pickFirst "lib/x86/libocstack-jni.so" } With this I can build and deploy the app. But when I call the consumer service I get the following error: java.lang.UnsatisfiedLinkError: dlopen failed: library "./obj/local/x86/libnotification_consumer_wrapper.so" not found What are the recommended practices including the multiple IoTivity libraries in an Android Studio project? With kind regards, Koenraad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170412/a4cea750/attachment.html>
