Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

plugin produces compile error #227

Open
djjterror opened this issue Jun 9, 2018 · 14 comments
Open

plugin produces compile error #227

djjterror opened this issue Jun 9, 2018 · 14 comments

Comments

@djjterror
Copy link

I used cocoon and phonegap
both give following compile error:

No resource identifier found for attribute 'appComponentFactory' in package 'android'
com.android.ide.common.process.ProcessException: Failed to execute aapt

then i removed cordova-plugin-crosswalk-webview plugin and compile worked

So what now?

@Moghul
Copy link

Moghul commented Jun 11, 2018

Having the exact same problem building with cordova locally. Removing the plugin fixes my issue, but I need the plugin.

/path/to/platforms/android/build/intermediates/manifests/full/armv7/release/AndroidManifest.xml:57: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'

/path/to/platforms/android/build/intermediates/manifests/full/armv7/release/AndroidManifest.xml:57: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processArmv7ReleaseResources'.

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

@pomelo828
Copy link

I hava the same problem,All my projects have been affected.
This is a very big impact!!!

@csharpstyle
Copy link

Same problem building with PhoneGap cli-6.5.2. Setting PhoneGap cli back to 6.0.0 fixed the problem.

@Moghul
Copy link

Moghul commented Jun 25, 2018

I don't feel like that's a fix. I don't even use PhoneGap cli.

The real temp fix is somewhere in here
#205

You make a build-extras.gradle file and you try and figure out which library version you need. Good luck.

EDIT: The comment from jetma worked from me.

@dpa99c
Copy link

dpa99c commented Jun 28, 2018

As pointed out by @Scuttman in #205, this is caused when building with Android Support Library v28.

To avoid needing to manually create a build-extras.gradle file, use cordova-android-support-gradle-release plugin to specify v27:

cordova plugin add cordova-android-support-gradle-release  --variable ANDROID_SUPPORT_VERSION=27.+

@mykelsoft
Copy link

@dpa99c this method works for me, thank you dude u save me

@Riyaz0001
Copy link

@dpa99c this method works for me and thank you so much.

@Moghul
Copy link

Moghul commented Jul 20, 2018

I feel like installing a plugin to fix a bug is a bit like killing a mosquito with a hammer. Is this really the correct solution?

@dpa99c
Copy link

dpa99c commented Jul 20, 2018

@Moghul There's plugins and there's Plugins...

This "plugin" is just Gradle config which is deployed by a nodejs script fired by Cordova.
There's no native code.

It's a generic solution to a problem which is inherently caused by the fact that cordova-android doesn't provide a mechanism by which you can take fine-grain control of Gradle dependency versions.

The "correct" solution would be to add such a mechanism to the cordova-android platform.

@gsdiama
Copy link

gsdiama commented Sep 18, 2018

That worked for me! Thanks @dpa99c !!

@Iheb-miled
Copy link

@dpa99c thanks man , that worked for me ! , thanks

@wangyueweb
Copy link

@dpa99c thanks man

@pixael
Copy link

pixael commented Mar 26, 2019

@dpa99c thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

12 participants