Build error after adding Crosswalk plugin to a Cordova Android project -
i'm using latest cordova android (5.1.0). project building , running fine without crosswalk, after add crosswalk plugin using
cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git
i following build error:
error:15:53:54.127 [error] [system.err] /users/or/projects/test/cordova/platforms/android/src/org/crosswalk/engine/ xwalkwebviewengine. java:48: error: cannot find symbol 15:53:54.127 [error] [system.err] import org.xwalk.core.xwalkgetbitmapcallback; 15:53:54.128 [error] [system.err] ^ 15:53:54.128 [error] [system.err] symbol: class xwalkgetbitmapcallback 15:53:54.128 [error] [system.err] location: package org.xwalk.core 15:53:54.178 [error] [system.err] /users/or/projects/test/cordova/platforms/android/src/org/crosswalk/engine/xwalkwebviewengine. java:103: error: cannot find symbol 15:53:54.179 [error] [system.err] new xwalkgetbitmapcallback() { 15:53:54.179 [error] [system.err] ^ 15:53:54.180 [error] [system.err] symbol: class xwalkgetbitmapcallback 15:53:54.181 [error] [system.err] /users/or/projects/test/cordova/platforms/android/src/org/crosswalk/engine/xwalkwebviewengine. java:207: error: cannot find symbol 15:53:54.182 [error] [system.err] webview.getextensionmanager().loadextension(xwalk_extensions_folder + file.separator + path); 15:53:54.182 [error] [system.err] ^ 15:53:54.182 [error] [system.err] symbol: method getextensionmanager() 15:53:54.182 [error] [system.err] location: variable webview of type xwalkcordovaview 15:53:54.184 [error] [system.err] /users/or/projects/test/cordova/platforms/android/src/org/crosswalk/engine/xwalkcordovaview. java:93: error: method not override or implement method supertype 15:53:54.185 [error] [system.err] @override 15:53:54.185 [error] [system.err] ^ 15:53:54.188 [error] [system.err] note: input files use or override deprecated api. 15:53:54.188 [error] [system.err] note: recompile -xlint:deprecation details. 15:53:54.188 [error] [system.err] 4 errors 15:53:54.190 [error] [org.gradle.buildexceptionreporter] 15:53:54.190 [error] [org.gradle.buildexceptionreporter] failure: build failed exception. 15:53:54.191 [error] [org.gradle.buildexceptionreporter] 15:53:54.191 [error] [org.gradle.buildexceptionreporter] * went wrong: 15:53:54.191 [error] [org.gradle.buildexceptionreporter] execution failed task ':compilex86debugjavawithjavac'. 15:53:54.191 [error] [org.gradle.buildexceptionreporter] > compilation failed; see compiler error output details. 15:53:54.191 [error] [org.gradle.buildexceptionreporter] 15:53:54.191 [error] [org.gradle.buildexceptionreporter] * try: 15:53:54.192 [error] [org.gradle.buildexceptionreporter] run --stacktrace option stack trace.
the project built using android studio.
has come across similar?
thanks
try it's working me.
you must add plugin before adding android platform.
cordova -version ==> 5.1.1
navigate project directory
cd cordova/
remove android platform
cordova platform rm android
check crosswalk plugin not installed
cordova plugin ls
add crosswalk plugin npm
cordova plugin add cordova-plugin-crosswalk-webview
add android platform
cordova platform add android
build android project
cordova build android
run android project
cordova run android
Comments
Post a Comment