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

      

    
    
  • 相关阅读:
    Clob实践
    Read Clob字段 Function最终版
    asp.net mvc proflie 使用 区别 疑惑
    csdn中关于程序员的一封信
    【解惑】女生适合干计算机什么方面的工作
    网络女友跟现实女友的区别
    [转]俞敏洪老师郑州大学演讲
    【解惑】这么多技术我该怎么学
    google使用技巧
    杨澜给二十几岁女孩子的忠告
  • 原文地址:https://www.cnblogs.com/plinx/p/3138738.html
Copyright © 2011-2022 走看看