zoukankan      html  css  js  c++  java
  • Install ADT in debian Wheezy

      1、download ADT from offical website

    https://developer.android.com/sdk/index.html

      TIPS:

    With a single download, the ADT Bundle includes everything you need to begin developing apps:
    
    Eclipse + ADT plugin
    Android SDK Tools
    Android Platform-tools
    The latest Android platform
    The latest Android system image
    for the emulator

      if you want to get more android platforms, do like this:

    $ cd ~Software/ADT/sdk/tools
    $ ./android

      2、unzip the adt.zip

    $ unzip adt-bundle-linux-x86_64-20130522.zip -d ~/Software/ADT

      3、change the dir 

    $ pwd 
    ~/Software/ADT/adt-bundle-linux-x86_64-20130522
    
    $ mv ./* ../
    $ rm -r adt-bundle-linux-x86_64-20130522

      4、just run the eclipse

    $ pwd 
    ~/Software/ADT/eclipse
    
    $ ./eclipse

      TIPS:

      1) fix the libncurse5 error for adb

    error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

      just enter :

    $ sudo apt-get install libncurse5:i386

      you should have done this before:( amd64 )

    $ sudo apt-get install ia32-libs

      2) add the PATH

    $ sudo vim ~/.bashrc
    
    // add the following messenge
    // -------------------------
    #       ADT
    export ECLIPSE_HOME=/home/linx/Software/ADT/eclipse
    export PATH=${ECLIPSE_HOME}:$PATH
    export SDK_HOME=/home/linx/Software/ADT/sdk
    export PATH=${SDK_HOME}/platform-tools:$PATH
    export PATH=${SDK_HOME}/tools:$PATH
    // -------------------------
    
    $ source ~/.bashrc
     after this we can run eclipse in any directory by enter
    $ eclipse 

      what's more, to run the eclipse in a shell script

    $ vim ~/Software/ADT/eclipse/eclipsestart
    
    // add messenge
    //-----------------
    #!/bin/sh
    
    eclipse &
    //-----------------
    
    $ chmod 775 ~/Software/ADT/eclipse/eclipsestart
    $ eclipsestart

      5、create a AVD(Android Virtual Device)

    $ eclipsestart
    
    // Window -> Android Virtual Device Manager -> New

      

    
    
  • 相关阅读:
    【ESXI6.0】 ESXI6.0安装时无法安装网卡驱动的解决方法及将网卡驱动加载进ISO
    [转]Vs解决方案的目录结构设置和管理
    在控制台编译运行java程序详细指导
    详解Linux安装GCC方法
    MySQL server has gone away 问题的解决方法
    eclipse或Myeclipse中web项目没有run on server时怎么办?
    DTM/DEM/DSM/DOM/DLG
    linux常用命令
    为什么很多地方看到初始值是1970年8月1日
    mongoDB
  • 原文地址:https://www.cnblogs.com/plinx/p/3138738.html
Copyright © 2011-2022 走看看