Hi,

I am getting following error, while using cordova 5.0 & android 4.0.0 in
cordova project.
Please suggest how to resolve this error ..???

I have installed cordova 5.0 & using the android 4.0.0 in my cordova
project.
============== I am using following plugins in my project ===========

cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.console
cordova plugin add https://github.com/mkuklis/phonegap-websocket
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

=====================================================================

By default android project is created to be build with android api 22 but i
have changed it to be build for api 19.
By modifying following to files.

I have changed the AndroidManifest.xml following line to api 19 :--
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />

changed following file project.properties :--
target=android-19


=================== error after build -- cordova build android
==========================
:preBuild
:compileArmv7DebugNdk UP-TO-DATE
:preArmv7DebugBuild
:checkArmv7DebugManifest
:preX86DebugBuild
: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
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor
dovaClientCertRequest.java:25: error: cannot find symbol
import android.webkit.ClientCertRequest;
                     ^
  symbol:   class ClientCertRequest
  location: package android.webkit
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor
dovaClientCertRequest.java:32: error: cannot find symbol
    private final ClientCertRequest request;
                  ^
  symbol:   class ClientCertRequest
  location: class CordovaClientCertRequest
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\Cor
dovaClientCertRequest.java:34: error: cannot find symbol
    public CordovaClientCertRequest(ClientCertRequest request) {
                                    ^
  symbol:   class ClientCertRequest
  location: class CordovaClientCertRequest
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\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
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebViewClient.java:29: error: cannot find symbol
import android.webkit.ClientCertRequest;
                     ^
  symbol:   class ClientCertRequest
  location: package android.webkit
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebViewClient.java:116: error: cannot find symbol
    public void onReceivedClientCertRequest (WebView view,
ClientCertRequest req
uest)
                                                           ^
  symbol:   class ClientCertRequest
  location: class SystemWebViewClient
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebChromeClient.java:249: error: cannot find symbol
    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
                                  ^
  symbol:   variable LOLLIPOP
  location: class VERSION_CODES
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemCookieManager.java:37: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                                                        ^
  symbol:   variable LOLLIPOP
  location: class VERSION_CODES
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemCookieManager.java:38: error: cannot find symbol
            cookieManager.setAcceptThirdPartyCookies(webView, true);
                         ^
  symbol:   method setAcceptThirdPartyCookies(WebView,boolean)
  location: variable cookieManager of type CookieManager
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemCookieManager.java:59: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                                                        ^
  symbol:   variable LOLLIPOP
  location: class VERSION_CODES
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemCookieManager.java:60: error: cannot find symbol
            cookieManager.flush();
                         ^
  symbol:   method flush()
  location: variable cookieManager of type CookieManager
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebChromeClient.java:250: error: method does not override or
implement
 a method from a supertype
    @Override
    ^
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebChromeClient.java:257: error: cannot find symbol
                    Uri[] result =
WebChromeClient.FileChooserParams.parseResult
(resultCode, intent);
                                                  ^
  symbol:   variable FileChooserParams
  location: class WebChromeClient
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\CordovaLib\src\org\apache\cordova\eng
ine\SystemWebViewClient.java:114: 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
:CordovaLib:compileDebugJava 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: 6.012 secs

D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s /c
"D:\temp\test\single\ake_app\ake_
app_one_bulb_sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platfor
ms\android\gradlew cdvBuildDebug -b
D:\temp\test\single\ake_app\ake_app_one_bulb
_sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platforms\android\b
uild.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error:
D:\temp\test\single\ake_app\ake_app_
one_bulb_sensor\one_bulb_app\demo\mobile_app\cross_plugin\UiMagician\platforms\a
ndroid\cordova\build.bat: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error:
D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mob
ile_app\cross_plugin\UiMagician\platforms\android\cordova\build.bat:
Command fai
led with exit code 8
    at ChildProcess.whenDone
(C:\Users\dinesh.RESGBLR\AppData\Roaming\npm\node_m
odules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

D:\temp\test\single\ake_app\ake_app_one_bulb_sensor\one_bulb_app\demo\mobile_app
\cross_plugin\UiMagician>

====================================================================

Regards,
Dinesh

On Fri, May 15, 2015 at 5:53 AM, Zhang, Belem <[email protected]> wrote:

>  Thanks Bnaya, this this one good option.
>
>
>
> This issue had been fixed on latest build, e.g. Beta 14.43.343.3, it
> cannot reproduce.
>
>
>
> If you don’t like to use the beta 14.43.343.3/14.43.343.4, and no willing
> to use Crosswalk WebView plugin, please don’t use latest version but 0.3.5
> of splashscreen plugin.
>
>
>
> BR
>
> Belem
>
>
>
>
>
> *From:* Crosswalk-help [mailto:
> [email protected]] *On Behalf Of *Bnaya
> Peretz
> *Sent:* Thursday, May 14, 2015 8:37 PM
> *To:* Dinesh Guleria
> *Cc:* [email protected]
> *Subject:* Re: [Crosswalk-help] crosswalk + cordova -- compile error for
> release build
>
>
>
> I Would recommend to update your project to cordova 5 & cordova android
> platform to 4+ and then use this plugin
> https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
>
>
>
> Read about it more here
>
> https://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html
> And
> https://cordova.apache.org/news/2015/04/21/tools-release.html
>
>
>
> On Thu, May 14, 2015 at 9:43 AM, Dinesh Guleria <[email protected]>
> wrote:
>
> Hi,
>
>
>
> I am able to migrate the existing cordova project to crosswalk webview,
> following this link
>
>
> https://crosswalk-project.org/documentation/cordova/migrate_an_application.html
>
>
>
> I am using api 19 :--
>
> android update project --subprojects --path . --target "android-19"
>
>
>
> My app is building fine for debug build :--
>
> cordova build android
>
>
>
> But now when i do an release build i use to get this error. Please see the
> attached image.
>
> cordova build android --release
>
>
>
> Release build is not successful.
>
>
>
> ============== I am using following plugins in my project ===========
>
>
>
> cordova plugin add org.apache.cordova.device
>
> cordova plugin add org.apache.cordova.console
>
> cordova plugin add https://github.com/mkuklis/phonegap-websocket
>
> cordova plugin add org.apache.cordova.splashscreen
>
>
>
> =====================================================================
>
>
>
> Please suggest how to resolve this error ?
>
>
>
>
>
> Regards,
>
> Dinesh
>
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to