我正在使用離子,我運行ionic build android
。出現以下錯誤。無法建立科爾多瓦Android應用程序 - 出現Java錯誤
:CordovaLib:compileDebugJava/Users/jasontanner/Documents/ion/fip/platforms/android/CordovaLib/src/org/apache/cordova/CordovaResourceApi.java:31: error: package org.apache.http.util does not exist
import org.apache.http.util.EncodingUtils;
^
/Users/jasontanner/Documents/ion/fip/platforms/android/CordovaLib/src/org/apache/cordova/CordovaResourceApi.java:430: error: cannot find symbol
byte[] data = base64 ? Base64.decode(dataPartAsString, Base64.DEFAULT) : EncodingUtils.getBytes(dataPartAsString, "UTF-8");
^
symbol: variable EncodingUtils
location: class CordovaResourceApi
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.663 secs
/Users/jasontanner/documents/ion/fip/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/jasontanner/documents/ion/fip/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/jasontanner/documents/ion/fip/platforms/android/build.gradle,-Dorg.gradle.daemon=true
我已經調整了相應的文件以在Android 22 SDK上運行。除此之外,我沒有對android代碼進行其他更改。如何解決這個問題的任何幫助將會很棒。謝謝!
'離子結構cordova'?那甚至是有效的命令?它不應該是'離子運行android'嗎? –
道歉。這是一個漫長的一天。 – jason328