I have run into an issue which has finally boiled over and burnt me. I am using a C++ library and the NDK in one of my apps, with Android Studio. When I targetSdkVersion 23 I get the following error on Marshmallow devices, causing a crash:
java.lang.UnsatisfiedLinkError: dlopen failed: library "./obj/local/armeabi-v7a/libcryptopp.so" not found If I instead targetSdkVersion 22, the error disappears. I really have no clue why this is happening, besides some potentially low level changes in Android Marshmallow. Relevant StackOverflow post can be seen here <http://stackoverflow.com/questions/34906495/library-not-found-due-to-targetsdkversion-armeabi-v7a-and-libcryptopp-so?lq=1> along with a GitHub sample project with the issue here <https://github.com/tcolligan-ap/ECDHTest>. Targeting 22 worked fine, until I went to upload my new app onto the PlayStore. I had previously uploaded an apk using 23 as the target, and apparently it wont let me upload a new apk with a lower target, giving me the error: "This configuration cannot be published for the following reason(s): It is forbidden to downgrade devices which previously used M permissions (target SDK 23 and above) to APKs which use old style permissions (target SDK 22 and below). This occurs in the change from version 9 (target SDK 23) to version 17 (target SDK 22). Version 9 is not served to any device configuration: all devices that might receive version 9 would receive version 17." So basically, it seem like I need to get this to work, while targeting api level 23. And that is where I am stuck right now... I am looking into alternative libraries right now, but that <http://stackoverflow.com/questions/35713800/android-spongycastle-ecdh-secp384r1-key-size-incorrect> isn't going so well. Any help here would be appreciated! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d770ddfc-dd43-4a9d-9b7a-bd5bbd48ddfd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

