error building libreoffice online android in android studio

Michael Weghorn m.weghorn at
Mon Feb 10 07:28:36 UTC 2020

On 10/02/2020 08.15, Michael Weghorn wrote:
>> [...]
>> '# ARM Android
>> --with-distro=LibreOfficeAndroid
>> --with-distro=LibreOfficeAndroidX86
>> # or Android x86 ( preferable if using an AVD Emulator )
>> --with-android-sdk=/home/rutuja/Android/Sdk
>> --with-android-ndk=/home/rutuja/Android/Sdk/ndk-bundle  
> While that should be unrelated to your build failure, there is meant to
> be only one 'with-distro=...' parameter, since the latter will overwrite
> the former otherwise. So you should just have one of those, depending on
> whether you want to build for the ARM architecture
> ('--with-distro=LibreOfficeAndroid') or x86
> ('--with-distro=LibreOfficeAndroidX86').

Looking at it again, this IS related to your build failure.
With this autogen.input file, the core git repo is built for x86, while

> ninja: error:
> '/home/rutuja/libreoffice/android/source/jniLibs/armeabi-v7a/',
> needed by
> '/home/rutuja/online/android/lib/src/main/cpp/lib/armeabi-v7a/',

shows that your build from Android Studio wants to have the ARM library.

So if you want to build for ARM, you probably just have to remove the
'--with-distro=LibreOfficeAndroidX86' line from your autogen.input,
rebuild the core part ("make clean && ./ && make") and try again.

More information about the LibreOffice mailing list