我是新的,可以进行交叉步行。我尝试在Ubuntu的Android设置,并在此处进行设置。但是我有像bellow这样的问题。请任何人解决这个问题吗?
>$ crosswalk-app check android
这些是显示的输出
+ Checking host setup for target android
+ Checking for android... /home/user/android/Android/Sdk/tools/android
+ Checking for ant... /usr/bin/ant
+ Checking for java... /home/user/install/jdk1.8.0_101/bin/java
+ Checking for lzma... /usr/bin/lzma
+ Checking for ANDROID_HOME... /home/user/android/Android/Sdk/
+ Testing dummy project in /tmp/PZHyT7
+ Creating com.example.foo [done]
+ Building com.example.foo [aapt...] ** WARNING: BUILD FAILED
/home/user/android/Android/Sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/home/user/android/Android/Sdk/tools/ant/build.xml:694: Execute failed:
java.io.IOException: Cannot run program
"/home/user/android/Android/Sdk/build-tools/25.0.1/aapt": error=13,
Permission denied
..................
..................
... 46 more
Total time: 6 seconds
+ Building com.example.foo [done]
*** ERROR: Building project failed
*** ERROR: Consult logfile /tmp/PZHyT7
您遇到了权限错误。这意味着您的用户帐户无法访问构建路径中的某些内容。我会说: ls -la /home/user/android/Android/Sdk/build-tools/25.0.1/aapt
并从那里走。您最终应该发现其中某个地方的用户/组权限不属于您。找到罪魁祸首后,请使用sudo chown myacct:mygrp offending_path
但是,您还被告知在/tmp/PZHyT7
上有一个日志文件,尝试nano
/TMP/PZHYT7并发布结果。