Admiral Land Admiral Land - 2 months ago 15
Android Question

Build android project with Jenkins:Could not initialize analytics

I try to build 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?

Answer Source

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