android-ktx icon indicating copy to clipboard operation
android-ktx copied to clipboard

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

Open cnevinc opened this issue 8 years ago • 20 comments

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: https://github.com/mozilla-tw/Rocket/pull/1970

cnevinc avatar May 22 '18 13:05 cnevinc

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

JakeWharton avatar May 22 '18 13:05 JakeWharton

same error here... how to fix this?

djjterror avatar Jun 08 '18 16:06 djjterror

Any news on this?

kenvernaillenvub avatar Jun 10 '18 12:06 kenvernaillenvub

I have the same errors in my logs.

YaroslavG avatar Jun 10 '18 13:06 YaroslavG

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

JakeWharton avatar Jun 10 '18 13:06 JakeWharton

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

YaroslavG avatar Jun 10 '18 13:06 YaroslavG

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

djjterror avatar Jun 10 '18 15:06 djjterror

Sounds like you need to consult their documentation or support.

On Sun, Jun 10, 2018, 11:51 AM djjterror [email protected] wrote:

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

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/android/android-ktx/issues/551#issuecomment-396059638, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEXv6KslWqc9fxLcjXLZafDm7_Rh4ks5t7UCIgaJpZM4UIsJX .

JakeWharton avatar Jun 10 '18 15:06 JakeWharton

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

mykelsoft avatar Jul 05 '18 19:07 mykelsoft

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

alatella87 avatar Jul 08 '18 15:07 alatella87

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

BrunoGiubilei avatar Jul 23 '18 15:07 BrunoGiubilei

@mykelsofty worked for me as well, thanks!

loonix avatar Jul 26 '18 11:07 loonix

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

bishwajeetbiswas avatar Jul 28 '18 10:07 bishwajeetbiswas

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

Cdvalencia avatar Sep 20 '18 18:09 Cdvalencia

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

Garynan52000 avatar Sep 26 '18 01:09 Garynan52000

best answer! work fine for me! tks alot

angelpatxi avatar Sep 27 '18 11:09 angelpatxi

@mykelsofty Thank you very much!!

BrianOjeda avatar Sep 28 '18 20:09 BrianOjeda

@mykelsofty Where is this code written?

zhaofy2323 avatar Oct 12 '18 08:10 zhaofy2323

Where to add this code

pravinraut809 avatar Oct 26 '18 07:10 pravinraut809

@mykelsofty Thanks! You save my day!

larryvisuals avatar Oct 30 '18 02:10 larryvisuals