2015-06-15 23 views
2

我目前正在建设一个PhoneGap的应用CordovaLib编译符号ClientCertRequest,使用以下工具版本:上找不到从科尔多瓦,Android的


为了安装需要cordova-android v4 +的插件,我尝试安装:


然而,cordova build命令不工作了。以下是第一线参考编译错误:

Running: /Users/Pierre/Documents/project/platforms/android/gradlew cdvBuildDebug -b /Users/Pierre/Documents/project/platforms/android/build.gradle -Dorg.gradle.daemon=true 
:preBuild 
:compileDebugNdk UP-TO-DATE 
:preDebugBuild 
:checkDebugManifest 
:CordovaLib:compileLint 
:CordovaLib:copyDebugLint UP-TO-DATE 
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE 
:CordovaLib:preBuild 
:CordovaLib:preDebugBuild 
:CordovaLib:checkDebugManifest 
:CordovaLib:prepareDebugDependencies 
:CordovaLib:compileDebugAidl UP-TO-DATE 
:CordovaLib:compileDebugRenderscript UP-TO-DATE 
:CordovaLib:generateDebugBuildConfig UP-TO-DATE 
:CordovaLib:generateDebugAssets UP-TO-DATE 
:CordovaLib:mergeDebugAssets UP-TO-DATE 
:CordovaLib:generateDebugResValues UP-TO-DATE 
:CordovaLib:generateDebugResources UP-TO-DATE 
:CordovaLib:packageDebugResources UP-TO-DATE 
:CordovaLib:processDebugManifest UP-TO-DATE 
:CordovaLib:processDebugResources UP-TO-DATE 
:CordovaLib:generateDebugSources UP-TO-DATE 
:CordovaLib:compileDebugJava 
/Users/Pierre/Documents/project/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 
/Users/Pierre/Documents/project/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java:32: error: cannot find symbol 
    private final ClientCertRequest request; 
       ^
    symbol: class ClientCertRequest 
    location: class CordovaClientCertRequest 


据我了解,the ClientCertRequest symbol has been introduced by the Android API level 21,我cordova build尝试使用旧的级别进行编译。

我试图强制使用API​​级别21

文件/Users/Pierre/Documents/project/platforms/android/CordovaLib/project.properties的包含以下内容:

# This file is automatically generated by Android Tools. 
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! 
# 
# This file must be checked in Version Control Systems. 
# 
# To customize properties used by the Ant build system use, 
# "ant.properties", and override values to adapt the script to your 
# project structure. 

# Indicates whether an apk should be generated for each density. 
split.density=false 
# Project target. 
target=android-19 
apk-configurations= 
renderscript.opt.level=O0 
android.library=true 

所以我试图创建一个包含同级文件ant.properties

target=android-21 

但它不会改变任何东西。

我也试过了一堆其他的修改,这些修改在这里可能会太长,但是最后都会被覆盖。


这里是Android的工具截图安装在我的系统上: enter image description here

我缺少什么?

回答