I am trying to build an android project with Jenkins, but I have error:
23:15:39 Could not initialize analytics, treating as opt-out.
23:15:39 java.io.FileNotFoundException: /var/jenkins_home/.android/analytics.settings (No such file or directory)
How to fix this?
You're affected by this bug. The work-around should be as easy as manually creating the ~/.android
directory before starting the build.
on ubuntu here is my solution ... no need to manually create dir ~/.android ... the system will auto create ~/.android once following is issued
see what architectures you currently have defined
dpkg --print-architecture
dpkg --print-foreign-architectures # see what you already have
typically on a 64 bit box you do not have 32 bit architecture enabled ... do that now
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 -y
above will install the necessary 32 bit libraries needed by aapt which is a 32 bit binary bundled in the android tool stack which is failing to execute properly ... now it will
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With