Hi
We’ve run into build errors when using cordova-plugin-crosswalk-webview 1.4.0
with the following configuration:
<preference name="xwalkVersion" value="15+”/>
It works fine with 14+. It also works with 15+ and "cordova build android", but
using “cordova build android —release” results in the following error:
:createXwalkCommandLineFileArmv7Release
:generateArmv7ReleaseResValues UP-TO-DATE
:generateArmv7ReleaseResources UP-TO-DATE
:mergeArmv7ReleaseResources UP-TO-DATE
:processArmv7ReleaseManifest UP-TO-DATE
:processArmv7ReleaseResources UP-TO-DATE
:generateArmv7ReleaseSources UP-TO-DATE
:compileArmv7ReleaseJava UP-TO-DATE
:lintVitalArmv7Release
:compileArmv7ReleaseNdk UP-TO-DATE
:proguardArmv7Release
Note: there were 2 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: library class android.app.Activity depends on program class
android.app.assist.AssistContent
Warning: library class android.view.View depends on program class
android.view.ViewStructure
Warning: library class android.view.View depends on program class
android.view.ViewStructure
Warning: library class android.view.View depends on program class
android.view.ViewStructure
Warning: library class android.view.ViewGroup depends on program class
android.view.ViewStructure
Warning: library class android.webkit.WebView depends on program class
android.view.ViewStructure
Warning: library class android.widget.TextView depends on program class
android.view.ViewStructure
Warning: there were 7 instances of library classes depending on program classes.
You must avoid such dependencies, since the program classes will
be processed, while the library classes will remain unchanged.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
:proguardArmv7Release FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':proguardArmv7Release'.
> java.io.IOException: Please correct the above warnings first.
* 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: 8.512 secs
/Users/.../cordova/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/.../cordova/platforms/android/gradlew with
args:
cdvBuildRelease,-b,/Users/.../cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/Users/.../cordova/platforms/android/cordova/build: Command failed with exit
code 1
You may not have the required environment or OS to build this project
Error: /Users/.../cordova/platforms/android/cordova/build: Command failed with
exit code 1
at ChildProcess.whenDone
(/Users/.../.nvm/versions/node/v4.1.1/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
So far, we were not able to identify the problem. Does anybody have an idea
what could cause that error?
Thank you very much.
Cheers
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help