Cordova 错误:java.io.IOException:在Android设备上构建在任务';processDebugResources';
我使用的是Ubuntu12.04.4 LTS,我的android手机是 三星Galaxy S3 Neo I93001安卓4.3版已成功连接到设备Cordova 错误:java.io.IOException:在Android设备上构建在任务';processDebugResources';,cordova,meteor,ubuntu-12.04,phonegap-build,android-build,Cordova,Meteor,Ubuntu 12.04,Phonegap Build,Android Build,我使用的是Ubuntu12.04.4 LTS,我的android手机是 三星Galaxy S3 Neo I93001安卓4.3版已成功连接到设备 ~$ adb devices List of devices attached * daemon not running. starting it now on port 5037 * * daemon started successfully * 4e1eb1e1 device 当尝试在android设备中构建示例应用程序时,出现此错误 任务
~$ adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
4e1eb1e1 device
当尝试在android设备中构建示例应用程序时,出现此错误
任务“:CordovaLib:processDebugResources”的执行失败
java.io.IOException:无法运行程序
“/android sdk linux/build tools/23.0.2/aapt”:错误=2,没有此类文件或
目录
尝试:使用--stacktrace选项运行以获取堆栈跟踪。
使用--info或--debug选项运行以获得更多日志输出
构建失败
我首先认为文件“aapt”不可用,或者没有该文件的权限。但是“aapt”文件在指定的路径上可用,并且用户也具有读写权限
您正在尝试在64位系统上运行32位文件。试一试
>file aapt
它应该给你以下结果
aapt: ELF 32-bit LSB shared object ...
SDK管理器实际上正在安装32位文件
尝试此修复程序:
(Using software centre or command lines) If your Ubuntu is a 32-bit OS then install libgl1-mesa-dev
In case of 64-bit OS install ia32-libs (Ubuntu 13.04 or earlier), or libgl1-mesa-dev:i386 (Ubuntu 13.10 and above)
参考:根据Android开发者网站 注:
如果您正在运行64位版本的Ubuntu,则需要使用以下命令安装一些32位库: sudo apt get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 如果您正在运行64位Fedora,则命令为: sudo yum安装zlib.i686 ncurses-libs.i686 bzip2-libs.i686 请按照链接了解安装步骤:
事实上,aapt文件显示该文件是32位的,由于我的文件是ubuntu12.04LTS,所以我安装了sudo apt get install ia32 libs。现在meteor没有生成上述错误
(Using software centre or command lines) If your Ubuntu is a 32-bit OS then install libgl1-mesa-dev
In case of 64-bit OS install ia32-libs (Ubuntu 13.04 or earlier), or libgl1-mesa-dev:i386 (Ubuntu 13.10 and above)