diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-10-25 13:45:10 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-10-25 14:31:26 +0200 |
commit | 473e52d27bcca36a0ec46d558406c19cfef7a4c5 (patch) | |
tree | 274f5f1db4776fcc8b28df46595812907d88cc7d /android | |
parent | 2efdb2016a2263f9bf88417dddd8935e6dc3c619 (diff) |
android: Fix a linking problem.
This is needed after core.git's
f68a36b62ed327eb67efdfea0ac46645b4d90877, without it the native code
crashes:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.collabora.libreoffice.debug, PID: 25358
java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1667)
at org.libreoffice.androidlib.LOActivity.<clinit>(LOActivity.java:467)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
...
Change-Id: If0d0f3ade3d2a5a8692dcc3d79edbfb51cd7e2ed
Reviewed-on: https://gerrit.libreoffice.org/81499
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/lib/build.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/lib/build.gradle b/android/lib/build.gradle index f208d302b..0120a2416 100644 --- a/android/lib/build.gradle +++ b/android/lib/build.gradle @@ -11,6 +11,11 @@ android { targetSdkVersion 28 versionCode 1 versionName "1.0" + externalNativeBuild { + cmake { + arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_STL=c++_shared" + } + } } buildTypes { |