Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

No resource identifier found for attribute 'appComponentFactory' in package 'android' #551

Closed
@cnevinc

Description

@cnevinc

After adding

implementation "androidx.core:core-ktx:${Versions.kotlin_ktx}"

my build failed with error

No resource identifier found for attribute 'appComponentFactory' in package 'android'
Message{kind=ERROR, text=No resource identifier found for attribute 'appComponentFactory' in package 'android', sources=[/Users/mozilla/Desktop/github/Rocket/app/build/intermediates/manifests/full/focusWebkit/firebase/AndroidManifest.xml:34], original message=, tool name=Optional.of(AAPT)}

Here's my build.gradle file
https://github.com/mozilla-tw/Rocket/blob/master/firebase/build.gradle

Thanks!

More details: mozilla-mobile/FirefoxLite#1970

Activity

JakeWharton

JakeWharton commented on May 22, 2018

@JakeWharton
Contributor

That attribute was added in Android P. core-ktx 1.0.0 depends on core 1.0.0 which requires compilation with Android P.

djjterror

djjterror commented on Jun 8, 2018

@djjterror

same error here... how to fix this?

kenvernaillenvub

kenvernaillenvub commented on Jun 10, 2018

@kenvernaillenvub

Any news on this?

YaroslavG

YaroslavG commented on Jun 10, 2018

@YaroslavG

I have the same errors in my logs.

JakeWharton

JakeWharton commented on Jun 10, 2018

@JakeWharton
Contributor

That attribute was added in Android P. core-ktx 1.0.0 depends on core 1.0.0 which requires compilation with Android P.

YaroslavG

YaroslavG commented on Jun 10, 2018

@YaroslavG

Thanks for your answer! that means need install Android P sdk ?

djjterror

djjterror commented on Jun 10, 2018

@djjterror

@JakeWharton
So what can i do about it?
I use Cocoon for compiling.
Do i need some plugin or what?

JakeWharton

JakeWharton commented on Jun 10, 2018

@JakeWharton
Contributor
mykelsoft

mykelsoft commented on Jul 5, 2018

@mykelsoft

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

alatella87

alatella87 commented on Jul 8, 2018

@alatella87

@mykelsofty solution worked for me. Seems related to :mergeDebugResources?

BrunoGiubilei

BrunoGiubilei commented on Jul 23, 2018

@BrunoGiubilei

@mykelsofty best answer! work fine for me! tks alot

loonix

loonix commented on Jul 26, 2018

@loonix

@mykelsofty worked for me as well, thanks!

bishwajeetbiswas

bishwajeetbiswas commented on Jul 28, 2018

@bishwajeetbiswas

Below solved the same issue.
Try installing android p sdk and change compileSdkVersion value to 28

Cdvalencia

Cdvalencia commented on Sep 20, 2018

@Cdvalencia

@mykelsofty Thank´s, i've lost 1 day shearching this solution.

Garynan52000

Garynan52000 commented on Sep 26, 2018

@Garynan52000

@mykelsofty It's really helpful, thank's!

angelpatxi

angelpatxi commented on Sep 27, 2018

@angelpatxi

best answer! work fine for me! tks alot

BrianOjeda

BrianOjeda commented on Sep 28, 2018

@BrianOjeda

@mykelsofty Thank you very much!!

zhaofy2323

zhaofy2323 commented on Oct 12, 2018

@zhaofy2323

@mykelsofty Where is this code written?

pravinraut809

pravinraut809 commented on Oct 26, 2018

@pravinraut809

Where to add this code

larryvisuals

larryvisuals commented on Oct 30, 2018

@larryvisuals

@mykelsofty Thanks! You save my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JakeWharton@cnevinc@BrunoGiubilei@loonix@alatella87

        Issue actions

          No resource identifier found for attribute 'appComponentFactory' in package 'android' · Issue #551 · android/android-ktx