2015-06-17 48 views
1

嗨,我工作的一個項目中,我需要下載一些文件,所以我安裝了文件傳輸的插件如何在離子框架中添加文件傳輸插件?

cordova plugin add cordova-plugin-file and 
cordova plugin add cordova-plugin-file-transfer 

每一件事情是工作的罰款在IOS版本

但是當我試圖運行應用在Android中它顯示了一個錯誤,而不是工作的應用

BUILD FAILED

/Users/munr/Documents/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Users/muar/Documents/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 4 seconds

/Users/muar/androidtest/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: ant with args: debug,-f,/Users/mur/androidtest/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/mvar/androidtest/platforms/android/cordova/build: Command failed with exit code 8 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)

+0

這些都是錯誤嗎?還是有人在這裏失蹤?無法看到這些錯誤有什麼問題。 –

+0

這是錯誤來臨,而我試圖模仿或構建Android –

回答

0

嘗試安裝Android這樣一個17 SDK的19.在刀具管理中。

+0

心態來闡述? – manetsus

+0

http://developer.android.com/sdk/index.html#Other這裏您可以下載SDK。打開工具管理器,選擇一個android版本並下載與之關聯的每個文件。基本上檢查所有的複選框。完成安裝後,您將安裝Android版本。接下來在工具管理器中轉到設備上,創建一個運行它之後,使用新安裝的android版本創建一個模擬器(android設備)。等待它啓動,然後嘗試爲Android構建(讀取:運行)。 – brace110

相關問題