zoukankan      html  css  js  c++  java
  • linux eclipse中运行android AVD 错误

    当使用android的AVD时提示以下错误:
    Starting emulator for AVD 'NexusOne' 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.

    提示我们有两种方法可以解决:
    1)、修改~/.bashrc,添加一句:export ANDROID_EMULATOR_FORCE_32BIT=true;重启;
    2)、

    1. In Eclipse, click your Android project folder and then select Run > Run Configurations...

    2. In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.

    3. Click the Target tab.

    In the Additional Emulator Command Line Options field, enter:

    -force-32bit 

    Run your Android project using this run configuration.

    在终端运行模拟器:

    emulator -avd name -partition-size 128 

    命令行下创建AVD

    1. 输入命令查看的可用android版本平台:

    android list targets

    1. 创建AVDandroid create avd --name <your_avd_name> --target<targetID>

    其他命令:

    android list avd 列出自己创建的模拟器

    android delete avd --name avd_name 删除模拟器

    emulator -debug avd_config -avd avd_name 指定用某模拟器

    adb install c:aa.apk 安装应用程序到模拟器

    rm com.aa.pak 卸载应用程序

  • 相关阅读:
    ansible部署apache
    yum换源,rpm包下载,源码包安装
    zabbix 监控apache
    分块大法 -- 优雅的暴力
    [每日一题]:建立联系 -- 最小生成树
    [每日一题]:P1016 旅行家的预算 -- 反悔贪心
    [每日一题]:[NOIP2010]关押罪犯 -- 并查集
    Python基础: 元组的基本使用
    Python基础: 列表的基本使用
    Python基础:分支、循环、函数
  • 原文地址:https://www.cnblogs.com/plxx/p/4154588.html
Copyright © 2011-2022 走看看