Android Studio builds but crashes on run -- couldn't find "libOFAndroidApp.so"

#1

On Ubuntu 19, OF 10.1 Linux64, ‘com.android.tools.build:gradle-experimental:0.9.3’, android-ndk-r15c, module mySketch using build variant arm7Debug-armeabi-v7a , openFrameworksProject using build variant arm64Debug-arm64-v8a . Tried making both variants the same got same error. Unsure if variants matter.

ERROR:

019-07-27 19:58:05.055 19539-19539/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: cc.openframeworks.Android_Test_4, PID: 19539
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/system/framework/org.apache.http.legacy.boot.jar”, zip file “/data/app/cc.openframeworks.Android_Test_4-0Z2N6-PHfJL9ihRTHLsqMg==/base.apk”],nativeLibraryDirectories=[/data/app/cc.openframeworks.Android_Test_4-0Z2N6-PHfJL9ihRTHLsqMg==/lib/arm64, /system/lib64, /system/vendor/lib64]]] couldn’t find “libOFAndroidApp.so”
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1669)
at cc.openframeworks.OFAndroidLifeCycle.(OFAndroidLifeCycle.java:41)
at cc.openframeworks.OFAndroidLifeCycle.setActivity(OFAndroidLifeCycle.java:225)
at cc.openframeworks.OFActivity.onCreate(OFActivity.java:60)
at cc.openframeworks.Android_Test_4.OFActivity.onCreate(OFActivity.java:13)
at android.app.Activity.performCreate(Activity.java:7136)
at android.app.Activity.performCreate(Activity.java:7127)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2905)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3060)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1818)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)