linux 平臺安裝ionic開發調試編譯環境(Android)

linux版本:centos 6.5html

提早準備好http proxy:java

1.http_proxy=http://x.x.x.x:58989node

2.備選的http proxy: sdk.gdgshanghai.com 8000linux

 

先安裝node.js,須要pyhton 2.6以上android

# cat /etc/system-release ios

CentOS release 6.5 (Final) apache

# locale npm

LANG=en_US.UTF-8 centos

# wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz瀏覽器

# tar zxvf node-v0.12.7.tar.gz

# cd node-v0.12.7 

# ./configure --prefix=/usr 

# make 

# make install 

 

安裝完畢

# npm --version

2.11.3

 

/////////////////////////////////////

開始npm,若是npm安裝出現錯誤或者超時等等,可能須要掛http proxy,或者安裝cnpm使用國內鏡像站

使用http proxy方法命令後加 --proxy http://server:port 便可

安裝cnpm的方法:

npm install -g cnpm --registry=https://registry.npm.taobao.org

以後就用cnpm代替 npm便可

 

另外,目前都是用root直接操做,若是在別的發行版,須要管理員權限操做

sudo npm xxx xxx

/////////////////////////////////////

 

安裝cordova

# npm install -g cordova

安裝完畢

# cordova --version

5.2.0

 

安裝ionic

# npm install -g ionic -d

# ionic --version

1.6.4

 

測試ionic,建立一個新的app,成功提示裏有些有用的tips

#mkdir /home/ionic_dev/

#cd /home/ionic_dev/

# ionic start ioapp_app_sidemenu sidemenu

....

Your Ionic project is ready to go! Some quick tips:

* cd into your project: $ cd ioapp_app_sidemenu

* Setup this project to use Sass: ionic setup sass

* Develop in the browser with live reload: ionic serve

* Add a platform (ios or Android): ionic platform add ios [android]

   Note: iOS development requires OS X currently

   See the Android Platform Guide for full Android installation instructions:

   https://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html

* Build your app: ionic build <PLATFORM>

* Simulate your app: ionic emulate <PLATFORM>

* Run your app on a device: ionic run <PLATFORM>

* Package an app using Ionic package service: ionic package <MODE> <PLATFORM>

For more help use ionic --help or ionic docs

Visit the Ionic docs: http://ionicframework.com/docs

 

打開調試服務,在瀏覽器裏預覽app界面

進入app目錄

#ionic serve --address IP_address --port port

好比:ionic serve --address 192.168.1.129 --port 8101

直接ionic serve只監聽localhost:8100,我的在本機開發建議這個,若是要多人開發,多人預覽,使用上面的命令

若是瀏覽器訪問不了,考慮iptables端口是否開放,測試服務器建議將iptables關閉

 

爲了實現修改程序,瀏覽器自動刷新,以及多個app同時實現調試須要多個端口,能夠把防火牆關掉(只針對內網測試服務器)

# service iptables stop 停服務 

# chkconfig  iptables  off 停開機自動啓動

 

安裝JDK1.7

# cd /opt/

下載

# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"

# tar xzf jdk-7u79-linux-x64.tar.gz

# cd /opt/jdk1.7.0_79/

安裝,若是有其餘安裝版本,須要選中本次安裝的版本

# alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2

# alternatives --config java

# alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2

# alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2

# alternatives --set jar /opt/jdk1.7.0_79/bin/jar

# alternatives --set javac /opt/jdk1.7.0_79/bin/javac 

安裝成功

# java -version

java version "1.7.0_79"

Java(TM) SE Runtime Environment (build 1.7.0_79-b15)

Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

 

配置環境變量,寫入~/.bashrc or ~/.bash_profile.

# kongzong install jdk

export JAVA_HOME=/opt/jdk1.7.0_79

export JRE_HOME=/opt/jdk1.7.0_79/jre

export PATH=$PATH:/opt/jdk1.7.0_79/bin:/opt/jdk1.7.0_79/jre/bin

 

 

安裝android sdk

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

解壓到/opt/android-sdk-linux/

 

配置環境變量,寫入~/.bashrc or ~/.bash_profile.

# kongzong android sdk

export ANDROID_HOME=/opt/android-sdk-linux

export PATH=$PATH:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools

 

這個時候只有android sdk,要能編譯出apk,要須要一系列的platform 和 tools

服務器沒有gui環境,使用命令行進行安裝

 

android程序在/opt/android-sdk-liunx/tools/下,若是配置了環境變量,則能夠直接使用

 

這個命令能夠列出一共有哪些可安裝的包

# android list sdk -a --proxy-host x.x.x.x --proxy-port 58989

 

輸出以下

/////////////////////////////////////////////

Packages available for installation or update: 107

   1- Android SDK Tools, revision 24.3.4

   2- Android SDK Platform-tools, revision 23

   3- Android SDK Build-tools, revision 23

   4- Android SDK Build-tools, revision 22.0.1

   5- Android SDK Build-tools, revision 22 (Obsolete)

   6- Android SDK Build-tools, revision 21.1.2

   7- Android SDK Build-tools, revision 21.1.1 (Obsolete)

   8- Android SDK Build-tools, revision 21.1 (Obsolete)

   9- Android SDK Build-tools, revision 21.0.2 (Obsolete)

  10- Android SDK Build-tools, revision 21.0.1 (Obsolete)

  11- Android SDK Build-tools, revision 21 (Obsolete)

  12- Android SDK Build-tools, revision 20

  13- Android SDK Build-tools, revision 19.1

  14- Android SDK Build-tools, revision 19.0.3 (Obsolete)

  15- Android SDK Build-tools, revision 19.0.2 (Obsolete)

  16- Android SDK Build-tools, revision 19.0.1 (Obsolete)

  17- Android SDK Build-tools, revision 19 (Obsolete)

  18- Android SDK Build-tools, revision 18.1.1 (Obsolete)

  19- Android SDK Build-tools, revision 18.1 (Obsolete)

  20- Android SDK Build-tools, revision 18.0.1 (Obsolete)

  21- Android SDK Build-tools, revision 17 (Obsolete)

  22- Documentation for Android SDK, API 23, revision 1

  23- Documentation for Android SDK, API 22, revision 1

  24- SDK Platform Android 6.0, API 23, revision 1

  25- SDK Platform Android 5.1.1, API 22, revision 2

  26- SDK Platform Android 5.0.1, API 21, revision 2

  27- SDK Platform Android 4.4W.2, API 20, revision 2

  28- SDK Platform Android 4.4.2, API 19, revision 4

  29- SDK Platform Android 4.3.1, API 18, revision 3

  30- SDK Platform Android 4.2.2, API 17, revision 3

  31- SDK Platform Android 4.1.2, API 16, revision 5

  32- SDK Platform Android 4.0.3, API 15, revision 5

  33- SDK Platform Android 4.0, API 14, revision 4 (Obsolete)

  34- SDK Platform Android 3.2, API 13, revision 1 (Obsolete)

  35- SDK Platform Android 3.1, API 12, revision 3 (Obsolete)

  36- SDK Platform Android 3.0, API 11, revision 2 (Obsolete)

  37- SDK Platform Android 2.3.3, API 10, revision 2

  38- SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)

  39- SDK Platform Android 2.2, API 8, revision 3

  40- SDK Platform Android 2.1, API 7, revision 3 (Obsolete)

  41- SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)

  42- SDK Platform Android 2.0, API 5, revision 1 (Obsolete)

  43- SDK Platform Android 1.6, API 4, revision 3 (Obsolete)

  44- SDK Platform Android 1.5, API 3, revision 4 (Obsolete)

  45- SDK Platform Android 1.1, API 2, revision 1 (Obsolete)

  46- Samples for SDK API 23, revision 2

  47- Samples for SDK API 22, revision 6

  48- Samples for SDK API 21, revision 4

  49- Samples for SDK API 20, revision 3

  50- Samples for SDK API 19, revision 6

  51- Samples for SDK API 18, revision 1

  52- Samples for SDK API 17, revision 1

  53- Samples for SDK API 16, revision 1

  54- Samples for SDK API 15, revision 2

  55- Samples for SDK API 14, revision 2 (Obsolete)

  56- Samples for SDK API 13, revision 1 (Obsolete)

  57- Samples for SDK API 12, revision 1 (Obsolete)

  58- Samples for SDK API 11, revision 1 (Obsolete)

  59- Samples for SDK API 10, revision 1

  60- Samples for SDK API 9, revision 1 (Obsolete)

  61- Samples for SDK API 8, revision 1

  62- Samples for SDK API 7, revision 1 (Obsolete)

  63- Google APIs, Android API 23, revision 1

  64- Google APIs, Android API 22, revision 1

  65- Google APIs, Android API 21, revision 1

  66- Google APIs (ARM System Image), Android API 19, revision 15

  67- Google APIs, Android API 18, revision 4

  68- Google APIs, Android API 17, revision 4

  69- Google APIs, Android API 16, revision 4

  70- Google APIs, Android API 15, revision 3

  71- Google APIs, Android API 14, revision 2 (Obsolete)

  72- Google APIs, Android API 13, revision 1 (Obsolete)

  73- Google TV Addon, Android API 13, revision 1 (Obsolete)

  74- Google APIs, Android API 12, revision 1 (Obsolete)

  75- Google TV Addon, Android API 12, revision 2 (Obsolete)

  76- Google APIs, Android API 11, revision 1 (Obsolete)

  77- Google APIs, Android API 10, revision 2

  78- Google APIs, Android API 9, revision 2 (Obsolete)

  79- Google APIs, Android API 8, revision 2

  80- Google APIs, Android API 7, revision 1 (Obsolete)

  81- Google APIs, Android API 6, revision 1 (Obsolete)

  82- Google APIs, Android API 5, revision 1 (Obsolete)

  83- Google APIs, Android API 4, revision 2 (Obsolete)

  84- Google APIs, Android API 3, revision 3 (Obsolete)

  85- Sources for Android SDK, API 23, revision 1

  86- Sources for Android SDK, API 22, revision 1

  87- Sources for Android SDK, API 21, revision 1

  88- Sources for Android SDK, API 20, revision 1

  89- Sources for Android SDK, API 19, revision 2

  90- Sources for Android SDK, API 18, revision 1

  91- Sources for Android SDK, API 17, revision 1

  92- Sources for Android SDK, API 16, revision 2

  93- Sources for Android SDK, API 15, revision 2

  94- Sources for Android SDK, API 14, revision 1 (Obsolete)

  95- Android Support Repository, revision 17

  96- Android Support Library, revision 23

  97- Google AdMob Ads SDK, revision 11 (Obsolete)

  98- Google Analytics App Tracking SDK, revision 3 (Obsolete)

  99- Google Cloud Messaging for Android Library, revision 3 (Obsolete)

 100- Google Play services for Froyo, revision 12 (Obsolete)

 101- Google Play services, revision 26

 102- Google Repository, revision 20

 103- Google Play APK Expansion Library, revision 3

 104- Google Play Billing Library, revision 5

 105- Google Play Licensing Library, revision 2

 106- Android Auto API Simulators, revision 1

 107- Google Web Driver, revision 2

/////////////////////////////////////////////

前面的數字就是下面命令中 -t 可使用的packages number

 

 

這個命令安裝所有可用包,由於使用了proxy,返回大量的400錯誤

# android update sdk --proxy-host x.x.x.x --proxy-port 58989 -u

 

這個命令能夠定製安裝個別包 -t packages number,packages number能夠用上面的android list sdk得到

# android update sdk --proxy-host mirrors.opencas.cn --proxy-port 80 -u -a -t 2,3,4

 

最終成功運行的命令以下 -u是在命令行模式使用,-s是禁用https(使用proxy時避免400錯誤),能夠加-t 過濾packages number

這裏是安裝所有可用包,預警,須要的空間很大,大概20g

# android update sdk --proxy-host x.x.x.x --proxy-port 58989 -u -s

這個命令須要暴快的proxy,或者牆外,否則就要等上一個晚上了,

其實用 -t 安裝最新的Platform-tools,Build-tools就能達到可編譯apk

 

我此次安裝的所有內容以下

///////////////////////////////////////////////

Installing Archives:

  Preparing to install archives

  Downloading Android SDK Platform-tools, revision 23

  Installing Android SDK Platform-tools, revision 23

  Stopping ADB server failed (code -1).

    Installed Android SDK Platform-tools, revision 2399%)

  Downloading Android SDK Build-tools, revision 23

  Installing Android SDK Build-tools, revision 23

    Installed Android SDK Build-tools, revision 2399%)

  Downloading Documentation for Android SDK, API 23, revision 1

  Installing Documentation for Android SDK, API 23, revision 1

    Installed Documentation for Android SDK, API 23, revision 199%)

  Downloading SDK Platform Android 6.0, API 23, revision 1

  Installing SDK Platform Android 6.0, API 23, revision 1

    Installed SDK Platform Android 6.0, API 23, revision 197%)

  Downloading SDK Platform Android 5.1.1, API 22, revision 2

  Installing SDK Platform Android 5.1.1, API 22, revision 2

    Installed SDK Platform Android 5.1.1, API 22, revision 296%)

  Downloading SDK Platform Android 5.0.1, API 21, revision 2

  Installing SDK Platform Android 5.0.1, API 21, revision 2

    Installed SDK Platform Android 5.0.1, API 21, revision 296%)

  Downloading SDK Platform Android 4.4W.2, API 20, revision 2

  Installing SDK Platform Android 4.4W.2, API 20, revision 2

    Installed SDK Platform Android 4.4W.2, API 20, revision 297%)

  Downloading SDK Platform Android 4.4.2, API 19, revision 4

  Installing SDK Platform Android 4.4.2, API 19, revision 4

    Installed SDK Platform Android 4.4.2, API 19, revision 497%)

  Downloading SDK Platform Android 4.3.1, API 18, revision 3

  Installing SDK Platform Android 4.3.1, API 18, revision 3

    Installed SDK Platform Android 4.3.1, API 18, revision 397%)

  Downloading SDK Platform Android 4.2.2, API 17, revision 3

  Installing SDK Platform Android 4.2.2, API 17, revision 3

    Installed SDK Platform Android 4.2.2, API 17, revision 397%)

  Downloading SDK Platform Android 4.1.2, API 16, revision 5

  Installing SDK Platform Android 4.1.2, API 16, revision 5

    Installed SDK Platform Android 4.1.2, API 16, revision 596%)

  Downloading SDK Platform Android 4.0.3, API 15, revision 5

  Installing SDK Platform Android 4.0.3, API 15, revision 5

    Installed SDK Platform Android 4.0.3, API 15, revision 596%)

  Downloading SDK Platform Android 2.3.3, API 10, revision 2

  Installing SDK Platform Android 2.3.3, API 10, revision 2

    Installed SDK Platform Android 2.3.3, API 10, revision 298%)

  Downloading SDK Platform Android 2.2, API 8, revision 3

  Installing SDK Platform Android 2.2, API 8, revision 3

    Installed SDK Platform Android 2.2, API 8, revision 399%)

  Downloading Samples for SDK API 23, revision 2

  Installing Samples for SDK API 23, revision 2

    Installed Samples for SDK API 23, revision 297%)

  Downloading Samples for SDK API 22, revision 6

  Installing Samples for SDK API 22, revision 6

    Installed Samples for SDK API 22, revision 697%)

  Downloading Samples for SDK API 21, revision 4

  Installing Samples for SDK API 21, revision 4

    Installed Samples for SDK API 21, revision 496%)

  Downloading Samples for SDK API 20, revision 3

  Installing Samples for SDK API 20, revision 3

    Installed Samples for SDK API 20, revision 395%)

  Downloading Samples for SDK API 19, revision 6

  Installing Samples for SDK API 19, revision 6

    Installed Samples for SDK API 19, revision 694%)

  Downloading Samples for SDK API 18, revision 1

  Installing Samples for SDK API 18, revision 1

    Installed Samples for SDK API 18, revision 195%)

  Downloading Samples for SDK API 17, revision 1

  Installing Samples for SDK API 17, revision 1

    Installed Samples for SDK API 17, revision 195%)

  Downloading Samples for SDK API 16, revision 1

  Installing Samples for SDK API 16, revision 1

    Installed Samples for SDK API 16, revision 196%)

  Downloading Samples for SDK API 15, revision 2

  Installing Samples for SDK API 15, revision 2

    Installed Samples for SDK API 15, revision 296%)

  Downloading Samples for SDK API 10, revision 1

  Installing Samples for SDK API 10, revision 1

    Installed Samples for SDK API 10, revision 195%)

  Downloading Samples for SDK API 8, revision 1

  Installing Samples for SDK API 8, revision 1

    Installed Samples for SDK API 8, revision 196%)

  Downloading Android Support Repository, revision 17

  Installing Android Support Repository, revision 17

    Installed Android Support Repository, revision 1799%)

  Downloading Android Support Library, revision 23

  Installing Android Support Library, revision 23

    Installed Android Support Library, revision 2393%)

  Downloading Google Play services, revision 26

  Installing Google Play services, revision 26

    Installed Google Play services, revision 2697%)

  Downloading Google Repository, revision 20

  Installing Google Repository, revision 20

    Installed Google Repository, revision 2099%)

  Downloading Google Play APK Expansion Library, revision 3

  Installing Google Play APK Expansion Library, revision 3

    Installed Google Play APK Expansion Library, revision 378%)

  Downloading Google Play Billing Library, revision 5

  Installing Google Play Billing Library, revision 5

    Installed Google Play Billing Library, revision 596%)

  Downloading Google Play Licensing Library, revision 2

  Installing Google Play Licensing Library, revision 2

    Installed Google Play Licensing Library, revision 272%)

  Downloading Android Auto API Simulators, revision 1

  Installing Android Auto API Simulators, revision 1

    Installed Android Auto API Simulators, revision 199%)

  Downloading Google Web Driver, revision 2

  Installing Google Web Driver, revision 2

    Installed Google Web Driver, revision 299%)

  Downloading Google APIs, Android API 23, revision 1

  Installing Google APIs, Android API 23, revision 1

    Installed Google APIs, Android API 23, revision 189%)

  Downloading Google APIs, Android API 22, revision 1

  Installing Google APIs, Android API 22, revision 1

    Installed Google APIs, Android API 22, revision 189%)

  Downloading Google APIs, Android API 21, revision 1

  Installing Google APIs, Android API 21, revision 1

    Installed Google APIs, Android API 21, revision 189%)

  Downloading Google APIs (x86 System Image), Android API 19, revision 15

  Installing Google APIs (x86 System Image), Android API 19, revision 15

    Installed Google APIs (x86 System Image), Android API 19, revision 1599%)

  Downloading Google APIs (ARM System Image), Android API 19, revision 15

  Installing Google APIs (ARM System Image), Android API 19, revision 15

    Installed Google APIs (ARM System Image), Android API 19, revision 1599%)

  Downloading Glass Development Kit Preview, Android API 19, revision 11

  Installing Glass Development Kit Preview, Android API 19, revision 11

    Installed Glass Development Kit Preview, Android API 19, revision 1181%)

  Downloading Google APIs, Android API 18, revision 4

  Installing Google APIs, Android API 18, revision 4

    Installed Google APIs, Android API 18, revision 499%)

  Downloading Google APIs, Android API 17, revision 4

  Installing Google APIs, Android API 17, revision 4

    Installed Google APIs, Android API 17, revision 499%)

  Downloading Google APIs, Android API 16, revision 4

  Installing Google APIs, Android API 16, revision 4

    Installed Google APIs, Android API 16, revision 499%)

  Downloading Google APIs, Android API 15, revision 3

  Installing Google APIs, Android API 15, revision 3

    Installed Google APIs, Android API 15, revision 399%)

  Downloading Google APIs, Android API 10, revision 2

  Installing Google APIs, Android API 10, revision 2

    Installed Google APIs, Android API 10, revision 299%)

  Downloading Google APIs, Android API 8, revision 2

  Installing Google APIs, Android API 8, revision 2

    Installed Google APIs, Android API 8, revision 299%)

  Downloading Google APIs ARM EABI v7a System Image, Google Inc. API 23, revision 7

  Installing Google APIs ARM EABI v7a System Image, Google Inc. API 23, revision 7

    Installed Google APIs ARM EABI v7a System Image, Google Inc. API 23, revision 799%)

  Downloading Google APIs Intel x86 Atom_64 System Image, Google Inc. API 23, revision 7

  Installing Google APIs Intel x86 Atom_64 System Image, Google Inc. API 23, revision 7

    Installed Google APIs Intel x86 Atom_64 System Image, Google Inc. API 23, revision 799%)

  Downloading Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 7

  Installing Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 7

    Installed Google APIs Intel x86 Atom System Image, Google Inc. API 23, revision 799%)

  Downloading Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 1

  Installing Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 1

    Installed Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 199%)

  Downloading Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 1

  Installing Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 1

    Installed Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 199%)

  Downloading Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 1

  Installing Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 1

    Installed Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 199%)

  Downloading Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 7

  Installing Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 7

    Installed Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 799%)

  Downloading Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 7

  Installing Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 7

    Installed Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 799%)

  Downloading Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 7

  Installing Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 7

    Installed Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 799%)

    Updated ADB to support the USB devices declared in the SDK add-ons.

    Stopping ADB server succeeded.

    Starting ADB server succeeded.

  Done. 55 packages installed.

////////////////////////////////////////////////

 

這一段是網上查到的如何命令行安裝升級android sdk的原文:

///////////////////////////////////////////////

By default, the SDK Manager from the command line does not include the build tools in the list. They're in the "obsolete" category. To see all available downloads available, use

android list sdk --all

And then to get one of the packages in that list from the command line, use:

android update sdk -u -a -t <package no.>

Where -u stands for --no-ui, -a stands for --all and -t stands for --filter.

If you need to install multiple packages do:

android update sdk -u -a -t 1,2,3,4,..,n 

Where 1,2,..,n is the package number listed with the list command above

////////////////////////////////////////////////

 

 

如今能夠試試是否編譯成功

# cd /home/ionic_dev/app_xxxx

# ionic build android 

第一次會下載不少的依賴包

下載完後提示編譯錯誤: ..........libgcc_s.so.1 can not open ...

 

解決方法以下,須要安裝x86平臺的一些編譯工具,由於andriod sdk目前是x86的

#yum install -y glibc.i686 zlib.i686

原本能夠一同安裝libgcc.i686,可是每每這個包會提示libgcc.i686多個版本禁止安裝,則要先運行

#yum update libgcc 

而後 

#yum install libgcc.i686

 

應該差很少了

繼續ionic build android

依然有錯誤........q.js............

google了好久無果,想到有文章提過ionic build有錯誤,能夠換成

cordova build android

成功了!!!

在/home/ionic_dev/ioapp_app_sidemenu/platforms/android/build/outputs/apk 下生成android-debug.apk

 

以後嘗試ionic build android,還有若干次失敗,可是也有成功,無解,估計是ionic的bug,可是cordova build每次都成功

相關文章
相關標籤/搜索