Cordova Android project doesn't compile -


cordova version: 4.3.0

java version "1.8.0_40" 64bit

os x 10.10.2

ant version: 1.9.4

enter image description here

target android sdk i'm using 19.

when run 'ant release' in platforms/android/cordovalib folder following output error:

buildfile: .../platforms/android/cordovalib/build.xml  -set-mode-check:  -set-release-mode:  -release-obfuscation-check:      [echo] proguard.config ${proguard.config}  -pre-build:  -check-env:  [checkenv] android sdk tools revision 24.1.2  [checkenv] installed @ /users/.../library/android/sdk  -setup:      [echo] project name: mainactivity   [gettype] project type: android library  -build-setup: [getbuildtools] using latest build tools: 21.1.2      [echo] resolving build target mainactivity... [gettarget] project target:   android 4.4.2 [gettarget] api level:        19      [echo] ----------      [echo] creating output directories if needed...     [mkdir] created dir: .../platforms/android/cordovalib/bin/rsobj     [mkdir] created dir: .../platforms/android/cordovalib/bin/rslibs      [echo] ----------      [echo] resolving dependencies mainactivity... [dependency] library dependencies: [dependency] no libraries [dependency]  [dependency] ------------------      [echo] ----------      [echo] building libraries 'release'...    [subant] no sub-builds iterate on  -code-gen: [mergemanifest] no changes in androidmanifest files.      [echo] handling aidl files...      [aidl] no aidl files compile.      [echo] ----------      [echo] handling renderscript files...      [echo] ----------      [echo] handling resources...      [aapt] no changed resources. r.java , manifest.java untouched.      [echo] ----------      [echo] handling buildconfig class... [buildconfig] generating buildconfig class.  -pre-compile:  -compile:     [javac] compiling 98 source files .../platforms/android/cordovalib/bin/classes     [javac] warning: [options] source value 1.5 obsolete , removed in future release     [javac] warning: [options] target value 1.5 obsolete , removed in future release     [javac] warning: [options] suppress warnings obsolete options, use -xlint:-options.     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovawebviewclient.java:35: error: cannot find symbol     [javac] import android.webkit.clientcertrequest;     [javac]                      ^     [javac]   symbol:   class clientcertrequest     [javac]   location: package android.webkit     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovawebviewclient.java:145: error: cannot find symbol     [javac]     public void onreceivedclientcertrequest (webview view, clientcertrequest request)     [javac]                                                            ^     [javac]   symbol:   class clientcertrequest     [javac]   location: class cordovawebviewclient     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovachromeclient.java:342: error: cannot find symbol     [javac]     public boolean onshowfilechooser(webview webview, final valuecallback<uri[]> filepathscallback, final webchromeclient.filechooserparams filechooserparams) {     [javac]                                                                                                                          ^     [javac]   symbol:   class filechooserparams     [javac]   location: class webchromeclient     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovaclientcertrequest.java:25: error: cannot find symbol     [javac] import android.webkit.clientcertrequest;     [javac]                      ^     [javac]   symbol:   class clientcertrequest     [javac]   location: package android.webkit     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovaclientcertrequest.java:32: error: cannot find symbol     [javac]     private final clientcertrequest request;     [javac]                   ^     [javac]   symbol:   class clientcertrequest     [javac]   location: class cordovaclientcertrequest     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovaclientcertrequest.java:34: error: cannot find symbol     [javac]     public cordovaclientcertrequest(clientcertrequest request) {     [javac]                                     ^     [javac]   symbol:   class clientcertrequest     [javac]   location: class cordovaclientcertrequest     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovachromeclient.java:340: error: cannot find symbol     [javac]     @targetapi(build.version_codes.lollipop)     [javac]                                   ^     [javac]   symbol:   variable lollipop     [javac]   location: class version_codes     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovawebview.java:197: error: cannot find symbol     [javac]         if(build.version.sdk_int >= build.version_codes.lollipop)     [javac]                                                        ^     [javac]   symbol:   variable lollipop     [javac]   location: class version_codes     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovawebview.java:200: error: cannot find symbol     [javac]             cookiemanager.setacceptthirdpartycookies(this, true);     [javac]                          ^     [javac]   symbol:   method setacceptthirdpartycookies(cordovawebview,boolean)     [javac]   location: variable cookiemanager of type cookiemanager     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovawebviewclient.java:143: error: method not override or implement method supertype     [javac]     @override     [javac]     ^     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovachromeclient.java:341: error: method not override or implement method supertype     [javac]     @override     [javac]     ^     [javac] .../platforms/android/cordovalib/src/org/apache/cordova/cordovachromeclient.java:348: error: cannot find symbol     [javac]                     uri[] result = webchromeclient.filechooserparams.parseresult(resultcode, intent);     [javac]                                                   ^     [javac]   symbol:   variable filechooserparams     [javac]   location: class webchromeclient     [javac] note: input files use or override deprecated api.     [javac] note: recompile -xlint:deprecation details.     [javac] 12 errors     [javac] 3 warnings  build failed /users/.../library/android/sdk/tools/ant/build.xml:720: following error occurred while executing line: /users/.../library/android/sdk/tools/ant/build.xml:734: compile failed; see compiler error output details.  total time: 3 seconds 

android, ant, java in in path.

i've tried fiddling target sdks , tried downloading different versions i've run out of ideas. appreciated.

androidmanifest - cordovalib folder:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="org.apache.cordova" android:versionname="1.0" android:versioncode="1">     <uses-sdk android:minsdkversion="14" android:targetsdkversion="19" /> </manifest> 

don't understand why refers lollipop in error message , why can't find since it's installed.

i think it's because cordova 4.3.0 has referenced android.webkit.clientcertrequest, newly added in api level 21.

fyi: https://developer.android.com/reference/android/webkit/clientcertrequest.html


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -