android - Cordova 5 building using both grade/ant throwing java compile errors -
installed tools listed in android sdk manager.
java_home points jdk7
gradle_home, ant_home, android_home other configured environment variables.
already tried removing & adding again platform android
cordova project.
c:\users\pratik\documents\routeplannerfront\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 c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\cordovaclientcertrequest.java:32: error: cannot find symbol private final clientcertrequest request; ^ symbol: class clientcertrequest location: class cordovaclientcertrequest c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\cordovaclientcertrequest.java:34: error: cannot find symbol public cordovaclientcertrequest(clientcertrequest request) { ^ symbol: class clientcertrequest location: class cordovaclientcertrequest c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebchromeclient.java:251: error: cannot find symbol public boolean onshowfilechooser(webview webview, final valuecallback<uri[]> filepathscallback, final webchromeclient.filechooserparams filechooserparams) { ^ symbol: class filechooserparams location: class webchromeclient c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebviewclient.java:29: error: cannot find symbol import android.webkit.clientcertrequest; ^ symbol: class clientcertrequest location: package android.webkit c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebviewclient.java:116: error: cannot find symbol public void onreceivedclientcertrequest (webview view, clientcertrequest req uest) ^ symbol: class clientcertrequest location: class systemwebviewclient c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebchromeclient.java:249: error: cannot find symbol @targetapi(build.version_codes.lollipop) ^ symbol: variable lollipop location: class version_codes c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemcookiemanager.java:37: error: cannot find symbol if (build.version.sdk_int >= build.version_codes.lollipop) { ^ symbol: variable lollipop location: class version_codes c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemcookiemanager.java:38: error: cannot find symbol cookiemanager.setacceptthirdpartycookies(webview, true); ^ symbol: method setacceptthirdpartycookies(webview,boolean) location: variable cookiemanager of type cookiemanager c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemcookiemanager.java:59: error: cannot find symbol if (build.version.sdk_int >= build.version_codes.lollipop) { ^ symbol: variable lollipop location: class version_codes c:\users\pratik\documents\routeplannerfront\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 c:\users\pratik\documents\routeplannerfront\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 c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebchromeclient.java:250: error: method not ov erride or implement method supertype @override ^ c:\users\pratik\documents\routeplannerfront\platforms\android\cordovalib\src\org \apache\cordova\engine\systemwebviewclient.java:114: error: method not on ride or implement method supertype @override ^ note: input files use or override deprecated api. note: recompile -xlint:deprecation details. 14 errors :cordovalib:compiledebugjava failed failure: build failed exception. * went wrong: execution failed task ':cordovalib:compiledebugjava'. > compilation failed; see compiler error output details. * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 6.446 secs
i using cordova 5.0.0
after upgrading 5.1.1 npm update -g cordova
& removing android project using
cordova platform remove android
and adding android again
cordova platform add android
worked fine. in meantime, installed api22 either 1 of these or both responsible issue.
Comments
Post a Comment