How to set Cordova Android project to use NDK
How to set Cordova Android project to use NDK
I am trying to do what this question/answer has
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader
but in cordova instead.
android {
....
defaultConfig {
....
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
}
}
This works if I edit build.gradle manually in platforms/android/build.gradle
Using Cordova Android 6.4.0 (7.1 seems to break almost every plugin, including some cordova plugins such as cordova-network-information, so I've been unable to upgrade so far, and am looking for other solutions).
platforms/android/build.gradle
Editing manually isn't ideal, is there a way to set this automatically? Possibly with a hook or config.xml change?
Thanks
(edit)
Updated to 7.1 successfully, 64 bit still broken.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Comments
Post a Comment