我正在编译的应用程序应该会生成一个.apk文件,所以我使用的是aapt打包程序,它是我使用以下命令安装的Android SDK构建工具的一部分: android update sdk -u -a -t 7 (Android SDK中内置的工具,修订23.0.3)
但后来,当我运行摇篮失败,出现以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':Company-ServicesSDK:processReleaseResources'.
> A problem occurred starting process 'command '/Users/itai/repos/Company-Android_fork/.gradle/android-sdk-linux/build-tools/23.0.3/aapt''
通过我的Macbook我能够运行AAPT,它工作正常,但从Docker机器内部,当我尝试运行它时,我得到:
bash: ./aapt: No such file or directory
从我的Mac上运行file aapt:
aapt: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, not stripped
任何人都知道为什么会发生,以及如何解决呢?