2015-11-06 112 views
2

廣東話編譯我的ubuntu上的應用程序,當我嘗試ionic build android離子編譯錯誤:無法找到符號導入android.webkit.ClientCertRequest;

我的AndroidManifest.xml

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" /> 

我Project.Properties

target=android-19 
android.library.reference.1=CordovaLib 

我的錯誤:

:CordovaLib:compileDebugJava/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:25: error: cannot find symbol 
import android.webkit.ClientCertRequest; 

symbol: class ClientCertRequest 
    location: package android.webkit 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:32: error: cannot find symbol 
    private final ClientCertRequest request; 

symbol: class ClientCertRequest 
    location: class CordovaClientCertRequest 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:34: error: cannot find symbol 
    public CordovaClientCertRequest(ClientCertRequest request) { 
            ^
    symbol: class ClientCertRequest 
    location: class CordovaClientCertRequest 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java:29: error: cannot find symbol 
import android.webkit.ClientCertRequest; 

[。 ..]

symbol: variable LOLLIPOP 
    location: class VERSION_CODES 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java:60: error: cannot find symbol 
      cookieManager.flush(); 
         ^
    symbol: method flush() 
    location: variable cookieManager of type CookieManager 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:257: error: cannot find symbol 
        Uri[] result = WebChromeClient.FileChooserParams.parseResult(resultCode, intent); 
               ^
    symbol: variable FileChooserParams 
    location: class WebChromeClient 
/home/fernando/Dropbox/Code/Kelps/KelpsApp/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java:250: error: method does not override or implement a method from a supertype 
    @Override 
    ^
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
14 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. 

https://blog.nraboy.com/2014/09/install-android-cordova-ionic-framework-ubuntu/

已經試圖刪除平臺並再次添加平臺安裝離子環境。

有人之前得到過這個錯誤嗎?

謝謝!

回答

2

android.webkit.ClientCertRequest,這個類需要API等級21或更高。 android:targetSdkVersiontarget應該是21或更高。 一種方法是安裝API 21或更高版本。另一種方法是通過運行ionic platforms add [email protected]來添加較舊的android平臺。 現在命令ionic build android將起作用。

+0

平臺版本必須低於3.6.4 – mygoodhelper

相關問題