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

      

    
    
  • 相关阅读:
    POJ 1466 最大独立点集
    POJ 3159 差分约束
    POJ 3411 DFS
    POJ 2665 模拟,,
    POJ 3134 Power Calculus ID-DFS +剪枝
    POJ 1543 暴搜
    455. Assign Cookies
    715. Range Module
    530. Minimum Absolute Difference in BST
    493. Reverse Pairs(BST, BIT, MergeSort)
  • 原文地址:https://www.cnblogs.com/plinx/p/3138738.html
Copyright © 2011-2022 走看看