android常用

Ctrl+F11旋转模拟器
$android sdk

/home/cyper/android/android-sdk-linux/tools
$ android avd(打开AVD Manager)

$android list avd/targets

$ android create avd -n hello -t 1 (创建AVD)
Auto-selecting single ABI armeabi-v7a
Android 4.4.2 is a basic Android platform.
(-n指定avd的名称,-t指定target level,可以通过android list targets来显示目前有哪些api level)

/home/cyper/android/android-sdk-linux/platform-tools
$ adb install xx.apk(直接安装apk包到emulator或device)


存储不够,安装apk报错:Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
解决办法:
打开配置文件直接改参数:
/home/cyper/.android/avd/kitten.avd
在最后加上

disk.dataPartition.size=1024MB
详见:
http://stackoverflow.com/questions/2239330/how-to-increase-storage-for-android-emulator-install-failed-insufficient-stora

你可能感兴趣的:(android常用)