如果你的Linux机子是32位的,那么运行Android模拟器的时候会报错,如下:
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:
- Use the '-force-32bit' option when invoking 'emulator'.
- Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.
Either one will allow you to use the 32-bit binaries, but please be aware that these will disappear in a future Android SDK release.
Consider moving to a 64-bit Linux system before that happens.
Android模拟器在64位系统上运行最好,所以最好的解决办法是重新安装64位的Linux系统,如果暂时重装系统比较麻烦的话,有以下三种方法来解决:
1.在你要运行的工程右击->Run as -> Run configuration->Android application-> emulator , 滚动条拉到最后,找到Command Line输入框,输入"-force-32bit",然后apply即可。
2.配置环境变量,修改~/.bashrc,加上ANDROID_EMULATOR_FORCE_32BIT=true,重启或者:
source ~/.bashrc
3.用命令行启动: emulator -force-32bit -avd <avd-name>
通过USB连接,共享Linux上的网络,使用Android手机上网:http://www.linuxdiyf.com/linux/17266.html
Fedora 23建立wifi热点(Android手机可用):http://www.linuxdiyf.com/linux/16166.html
Android手机中跑Ubuntu系统:http://www.linuxdiyf.com/linux/15190.html
ubuntu通过蓝牙共享网络给Android手机:http://www.linuxdiyf.com/linux/14090.html
Linux下真机调试Android手机:http://www.linuxdiyf.com/linux/6165.html