Friday, August 21, 2015

Android Studio Error - java.lang.UnsatisfiedLinkError ... couldn't find "libstlport_shared.so"

PROBLEM:

While trying to use the SmartStore feature of the Salesforce MobileSDK on Android Native, I encountered the following error while trying to debug the app.

java.lang.UnsatisfiedLinkError ... couldn't find "libstlport_shared.so"


CAUSE:

It appears the issue is with Gradle not supporting native libraries.
The workaround is to create a zip archive of the armeabi/, rename it to .jar in your libs/ and include it as a gradle dependency.

SOURCE:

https://groups.google.com/forum/#!msg/adt-dev/nQobKd2Gl_8/Z5yWAvCh4h4J