Build Android Failde after add crosswalk plugin


#1

I want to make WebRTC video call with Crosswalk 2.4.0. I already add the crosswalk plugin. But, when I want to build android, I got error :

:processArmv7DebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processArmv7DebugResources’.

com.android.ide.common.process.ProcessException: Failed to execute aapt

  • 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: 26.287 secs
Error: cmd: Command failed with exit code 1 Error output:
D:\workspaces\ionic\webviewExample\platforms\android\build\intermediates\manifes
ts\full\armv7\debug\AndroidManifest.xml:24: AAPT: No resource identifier found f
or attribute ‘appComponentFactory’ in package ‘android’

D:\workspaces\ionic\webviewExample\platforms\android\build\intermediates\manifes
ts\full\armv7\debug\AndroidManifest.xml:24: error: No resource identifier found
for attribute ‘appComponentFactory’ in package ‘android’

This is my ionic info :

Ionic:

ionic (Ionic CLI) : 4.2.1
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 7.0.1
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-i
onic-webview 2.0.0, (and 5 other plugins)

System:

Android SDK Tools : 26.1.1 (D:\sdk)
NodeJS : v6.11.3 (C:\Program Files\nodejs\node.exe)
npm : 3.10.10
OS : Windows 7

Please guide me for solving. thanks


#2

If you use cordova-android-support-gradle-release, make sure to change the version to ^2.0.1 (in config.xml and package.json). The plugin owner seems to have recently introduce a bug in 1.4.7 that is only fixed in 2.0.1.