Linux Mint x64系统,eclipse也是64位,安装adt插件启动模拟器后报错:java
Failed to get the adb version: Cannot run program "/home/tsl0922/android-sdk-linux_x86/tools/adb": java.io.IOException: error=2, No such file or directory
缘由是adt插件只有32的,在64位系统运行须要32位lib,使用getlibs能够帮助安装32位软件依赖,下载地址:http://frozenfox.freehostia.com/cappy/getlibs-all.deblinux
进入android-sdk-linux_x86/platform-tools目录下,执行命令:android
getlibs aapt安装玩所需依赖后模拟器就能够启动了,可是导入adnroid工程运行后又出了问题:
Android requires compiler compliance level 5.0. Please fix project properties这是JDK版本不兼容致使的,解决方法:
1. 项目 右键 ->android tools ->Fix Projectshell
2. 若是不能够,检查Project -> Properties->Java Compiler app
确认JDK compliance被设置为1.6,而且enable specific seetings. eclipse
我使用前者解决。ui
至此,能够进行开发了 。Linux Mint是基于Ubuntu的,因此Ubuntu或Debin遇到此问题应该也能够这么解决。插件