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

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

21 Answers

✔️Accepted Answer

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

More Issues: