黑龙江快乐十分

在Ubuntu系统上构建Android环境以及从Google Play上下载APK

10/21/2015来源:网络管理人气:19168

  dazaoyigequanminglingxingdeandroidgoujianxitong

  step 1 anzhuang jdk huanjing

  peiheandroiddejdkzuihaoxuanyongjdkguanfangbanbenerbushiopen jdk,xiamianshizaiunbuntuxiaanzhuangjdk 1.7defangfa。

  daimaruxia:

黑龙江快乐十分  sudo add-apt-repository ppa:webupd8team/

  sudo apt-get update

黑龙江快乐十分  sudo apt-get install -java7-installer

  step 2 anzhuang android sdk

  android sdk gongjubaodeyixieminglingxinggongjushijiyu32weixitongde,zai64weipingtaiyunxing32chengxubixuanzhuang i386 deyixieyilaiku,fangfaruxia:

  daimaruxia:

黑龙江快乐十分  sudo dpkg --add-architecture i386

  sudo apt-get update

  sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

黑龙江快乐十分  anzhuangwancheng32weideyilaikuhou,womenshiyongwget quguanfangxiazaizuixindexiaandroid sdkbao。

  daimaruxia:

  cd ~

  wget http://dl.google.com/android/android-sdk_r24.0.1-linux.tgz

黑龙江快乐十分  tar xvzf android-sdk_r24.0.1-linux.tgz

  bianji .ofile huozhe .bash_profile baxiamiandemuluzengjiadao pathdesousuolujingzhong,quebaoandroid sdkdedeyixieminglinggongjukeyizhijiezaizhongduanshiyong,biru adb mingling。

  daimaruxia:

黑龙江快乐十分  android_home=$home/android-sdk-linux

  export path="$path:$android_home/tools:$android_home/platform-tools"

黑龙江快乐十分  exprot android_home

  shihuanjingbianliangshengxiao

  daimaruxia:

黑龙江快乐十分  source ~/.profile

  huanjingbianliangshengxiaohou,nikeyishiyongandroidmingling liechusdkxiangguandeliebiao,yibianwomenxuanzehezijixiangmupipeidesdkbanben。(gangcaizhishianzhuanglezuijichudesdk,yaowanquanmanzunidekaifahuanjingxuyaohaidecongxiamiandeliebiaozhongxuanzenixuyaodesdkhegongjugengxinxiazai)

  daimaruxia:

  android list sdk --all

  shuchuruxiasuoshi:

  1- android sdk tools, revision 24.0.1

  2- android sdk platform-tools, revision 21

  3- android sdk build-tools, revision 21.1.2

黑龙江快乐十分  4- android sdk build-tools, revision 21.1.1

  5- android sdk build-tools, revision 21.1

  6- android sdk build-tools, revision 21.0.2

  7- android sdk build-tools, revision 21.0.1

  8- android sdk build-tools, revision 21

黑龙江快乐十分  9- android sdk build-tools, revision 20

黑龙江快乐十分  10- android sdk build-tools, revision 19.1

  11- android sdk build-tools, revision 19.0.3

  12- android sdk build-tools, revision 19.0.2

  13- android sdk build-tools, revision 19.0.1

  14- android sdk build-tools, revision 19

  15- android sdk build-tools, revision 18.1.1

  16- android sdk build-tools, revision 18.1

黑龙江快乐十分  17- android sdk build-tools, revision 18.0.1

黑龙江快乐十分  18- android sdk build-tools, revision 17

  19- documentation for android sdk, api 21, revision 1

  20- sdk platform android 5.0.1, api 21, revision 2

  21- sdk platform android 4.4w.2, api 20, revision 2

黑龙江快乐十分  22- sdk platform android 4.4.2, api 19, revision 4

  23- sdk platform android 4.3.1, api 18, revision 3

黑龙江快乐十分  24- sdk platform android 4.2.2, api 17, revision 3

  ....

  zheilibaokuobutongdeandroid api banbenhebutongdegoujiangongju,xuanzenixiangyaoanzhuangxiangmudexuhao,zheiliwoxianganzhuang build tools 19.1 ,build tools 21 ji android 4.2.2yishangdesdksuoyixuanzexuhao “1,2,3,20,21,22,23”

  daimaruxia:

  android update sdk -u -a -t 1,2,3,10,20,21,22,23

  step 3 anzhuanggradlegoujianhuanjing

黑龙江快乐十分  shiyongantgoujianxiangmuyijingshiguoqushile,zheiliwomenxuanyonggengjiaqianghanhefangbiandegoujiangongjugradle 。

  xiazai grdle erjinzhibao

  daimaruxia:

  cd ~

  wget https://services.gradle.org/distributions/gradle-2.2.1-bin.z

黑龙江快乐十分  shifangdaobendihomemulu,chuangjianmingziwei"gradle"defuhaolianjie,fuhaolianjiedehaochushifangbianbanbengengxin,youlexindebanbenzhijiexiugaifuhaolianjiejike。

  daimaruxia:

  unzip gradle-2.2.1-bin.zip

  ln -s gradle-2.2.1 gradle

黑龙江快乐十分  peizhigradlehuanjingbianliangbingshiqishengxiao,bianji ~/.profje wenjianzengjiaxiamianneirong

  daimaruxia:

黑龙江快乐十分  gradle_home=$home/gradle

  export path=$path:$gradle_home/bin

黑龙江快乐十分  baocunhoushihuanjingbianliangshiqishengxiao

  daimaruxia:

  source ~/.profile

黑龙江快乐十分  huanjingbianliangshengxiaohounikeyizaizhongduanqiaoru'gradle'minglingbingyunxingyongyijiancegradleshifouanzhuangchenggong。

  daimaruxia:

  gradle

  ruguoanzhuangpeizhidemeiyouwentijianghuitishileisixiamiandexinxi

  daimaruxia:

  :help

  welcome to gradle 2.2.1

  To run a build, run gradle ...

黑龙江快乐十分  to see a list of available tasks, run gradle tasks

  to see a list of command-line options, run gradle --help

  build successful

  yanzhengshifoukeyibianyiandroid yingyong

  wanchengyishangdehuanjingpeizhi,womendeyigeandroidxiadejichugoujianhuanjingjiuquanbupeizhihaole,jiexialaizuodeshiqingjiushichangshishiyonggradle bianyiyigeandroid yingyongchulaiyanzhengwodebianyihuanjingshifouok,xiazaiwoxiedeyigegadle demo lizijinxingceshi。

  daimaruxia:

黑龙江快乐十分  git clone https://github.com/examplecode/gradle_demo

  cd gradle_demo/hello-apk-with-gradle

黑龙江快乐十分  gradle build

黑龙江快乐十分  ruhezai linux shangcong google play shangdianlixiazai apk wenjian

  python xuqiu

  googleplaydownloader xuyaoshiyongdaiyou sni(server name indication fuwuqimingchengzhishi)de python laizhichi ssl/tls tongxin,gaigongnengyou python 2.7.9 huogenggaobanbenyinru。zheishideyixiejiudefaxingbanbenru debian 7 wheezy jizaoqibanben, 14.04 jizaoqibanbenhuo centos/rhel 7 jizaoqibanbenjunbunengmanzugaiyaoqiu。zheilijiasheniyijingyouleyigedaiyou python 2.7.9 huogenggaobanbendefaxingbanben,keyixiangxiamianzheiyangjiezheanzhuang googleplaydownloader。

  zai ubuntu shanganzhuang googleplaydownloader

黑龙江快乐十分  zai ubuntu shang,nikeyishiyongguanfanggoujiande deb bao。youyigetiaojianshinikenengxuyaoshoudongdianzhuangyigebixudeyilai。

黑龙江快乐十分  zai ubuntu 14.10 shang

  xiazai python-ndg-httpsclient deb ruanjianbao,zheishiyigejiaojiude ubuntu faxingbanbenzhongqueshideyilai。tongshihaiyaoxiazai googleplaydownloader deguanfang deb ruanjianbao。

  daimaruxia:

  $ wget http://mirrors.kernel.org/ubuntu/pool/main/n/ndg-httpsclient/python-ndg-httpsclient_0.3.2-1ubuntu4_all.deb

黑龙江快乐十分  $ wget http://codingteam.net/project/googleplaydownloader/download/file/googleplaydownloader_1.7-1_all.deb

  ruxiasuoshi,womenjiangshiyong gdebi mingling laianzhuangzheiliangge deb wenjian。 gedbi minglingjiangzidongdichulirenheqitadeyilai。

  daimaruxia:

黑龙江快乐十分  $ sudo apt-get install gdebi-core

  $ sudo gdebi python-ndg-httpsclient_0.3.2-1ubuntu4_all.deb

  $ sudo gdebi googleplaydownloader_1.7-1_all.deb

  zai ubuntu 15.04 huogengxindebanbenshang

  zuijinde ubuntu faxingbanbenshangyijingpeibeilesuoyouxuyaodeyilai,suoyianzhuangguochengkeyiruxiamianneiyangzhijiejinxing。

  daimaruxia:

黑龙江快乐十分  $ wget http://codingteam.net/project/googleplaydownloader/download/file/googleplaydownloader_1.7-1_all.deb

黑龙江快乐十分  $ sudo apt-get install gdebi-core

  $ sudo gdebi googleplaydownloader_1.7-1_all.deb

  zai debian shanganzhuang googleplaydownloader

  youyuqi python xuqiu, googleplaydownloader bunengbeianzhuangdao debian 7 wheezy huozaoqibanbenshang,chufeinishengjiletazibeide python banben。

  zai debian 8 jessie jigenggaobanbenshang:

  daimaruxia:

  $ wget http://codingteam.net/project/googleplaydownloader/download/file/googleplaydownloader_1.7-1_all.deb

黑龙江快乐十分  $ sudo apt-get install gdebi-core

黑龙江快乐十分  $ sudo gdebi googleplaydownloader_1.7-1_all.deb

  zai fedora shanganzhuang googleplaydownloader

  youyu googleplaydownloader yuanbenshizhenduijiyu debian defaxingbanbensuokaifade,jiarunixiangzai fedora shangshiyongta,nixuyaocongtadekaishianzhuang。

  shouxiananzhuangbixudeyilai。

  daimaruxia:

黑龙江快乐十分  $ sudo yum install python-pyasn1 wxpython python-ndg_httpsclient protobuf-python python-requests

  ranhouxiangxiamianzheiyanganzhuangta。

  daimaruxia:

  $ wget http://codingteam.net/project/googleplaydownloader/download/file/googleplaydownloader_1.7.orig.tar.gz

  $ tar -xvf googleplaydownloader_1.7.orig.tar.gz

  $ cd googleplaydownloader-1.7

  $ chmod o+r -r .

黑龙江快乐十分  $ sudo python setup.py install

  $ sudo sh -c "echo 'python /usr/lib/python2.7/site-packages/googleplaydownloader-1.7-py2.7.egg/googleplaydownloader/googleplaydownloader.py' > /usr/bin/googleplaydownloader"

  shiyong googleplaydownloader cong google play shangdianxiazai apk wenjian

黑龙江快乐十分  yidannianzhuanghao googleplaydownloader hou,nijiukeyixiangxiamianneiyangcong google play shangdianxiazai apk wenjian。(lctt yizhu:xianrannixuyaorangnide linux nengpatizi)

  shouxiantongguoshuruxiamiandeminglinglaiqidonggaiyingyong:

  daimaruxia:

黑龙江快乐十分  $ googleplaydownloader

  zaisousuolanzhong,shurunixiangcong google play shangdianxiazaideyingyongdemingcheng。

  yidannicongsousuoliebiaozhongzhaodaolegaiyingyong,jiuxuanzegaiyingyong,jiezhedianji “xiazaixuandingde apk wenjian” anniu。zuihounijiangzainidejiamuluzhongzhaodaoxiazaide apk wenjian。xianzai,nijiukeyijiangxiazaidaode apk wenjianzhuanyidaonisuoxuanzede android shebeishang,ranhoushoudonganzhuangta。

黑龙江快乐十分  xiwangzheipianjiaochengduiniyousuobangzhu。



优质网站模板

  • 1
  • 2
  • 3

组网技术文章分类

最新文章推荐

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

组网技术推荐

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10