I’m trying to fix a bug that’s been reported with one of our plugins, but seem to be having trouble with the build system within Android Studio and I’ve a hunch this is somehow related to the 64bit support that’s been recently added?
In a nutshell, whatever I do, after Gradle finishes the build and tries to launch my sample app on a connected Android device, the app just flashes open and then closed again, Android Studio times out waiting to see it, and the following error is piped out:
2019-12-10 19:04:09.789 26686-26686/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.app, PID: 26686
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.mycompany.app-9s8f8cF8Z13BdIubYCMdXQ==/base.apk”],nativeLibraryDirectories=[/data/app/com.mycompany.app-9s8f8cF8Z13BdIubYCMdXQ==/lib/arm64, /system/lib64]]] couldn’t find "liblua.so"
at java.lang.reflect.Method.invoke(Native Method)
The key seems to be the part I’ve highlighted in bold. It’s looking in arm64 / lib64 for liblua.so and failing to find anything?
He’s talking about abiFilters and useDeprecatedNdk configurations which to be honest just don’t mean anything to me. I’m cautious about hacking away at Gradle files without understanding what I’m doing, and I’m conscious that this article isn’t Corona specific.
Everything I’m finding on Google suggests that this issue started with Android Studio 3.5. I’m currently running 3.5.3 so it’s possible that I was in a 3.4 build the last time this worked. It’s been a while since I did anything to this plugin now.
It’s also possible that this is the first time I’ve tried building since Corona was given 64bit support, though I’m not sure how relative that is with native builds.
Help please =).