简体   繁体   English

使用Jenkins构建android项目:无法初始化分析

[英]Build android project with Jenkins:Could not initialize analytics

I am trying to build an android project with Jenkins, but I have error: 我正在尝试用Jenkins构建一个android项目,但我有错误:

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 . 你受到这个bug的影响。 The work-around should be as easy as manually creating the ~/.android directory before starting the build. 解决方法应该像在开始构建之前手动创建~/.android目录一样简单。

on ubuntu here is my solution ... no need to manually create dir ~/.android ... the system will auto create ~/.android once following is issued 在ubuntu这里是我的解决方案......无需手动创建dir~ / .android ...系统将自动创建〜/ .android一旦发出以下内容

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 通常在64位盒子上你没有启用32位架构...现在就这样做

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 上面将安装aapt所需的32位库,这是一个捆绑在android工具堆栈中的32位二进制文​​件,无法正确执行...现在它将

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM