我重新安装了Ubuntu和Android Studio。我已经安装了打开的jdk7(由于某种原因,即使我正在运行Intel CPU,它也以后缀为“ amd64”的目录结尾,但我想这只是一个名字?)以及一些SDK文件。
然后,我创建了一个空项目,现在在窗口底部附近显示错误。我猜这是一个Gradle错误(对于AS来说是很新的)
Error:Execution failed for task ':app:mergeDebugResources'.
> /root/AndroidStudioProjects/HockeyGame/app/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png: Error: Cannot run program "/opt/android-studio/sdk/build-tools/android-4.4.2/aapt": error=2, No such file or directory
我当时在想这可能是文件特权问题(因为aapt确实确实存在),所以我递归将特权设置为775。我也从sudo(sudo sh studio.sh)开始使用AS。
有任何想法吗?我之所以在Android中尝试部分AS,是因为我无法在混乱的Windows安装下运行它(这也很有趣),因此这令人失望。
编辑:原来64位Ubuntu不适合开箱即用地运行32位可执行文件。
我通过运行解决了
sudo apt-get安装lib32stdc ++ 6
sudo apt-get安装lib32z1
参考:https : //code.google.com/p/android/issues/detail?id=67155
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句