Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build android project with Jenkins:Could not initialize analytics

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?

like image 991
Admiral Land Avatar asked Sep 06 '16 20:09

Admiral Land


2 Answers

You're affected by this bug. The work-around should be as easy as manually creating the ~/.android directory before starting the build.

like image 56
sschuberth Avatar answered Nov 15 '22 05:11

sschuberth


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

like image 22
Scott Stensland Avatar answered Nov 15 '22 06:11

Scott Stensland