Import packages butterknife package appear [androidx. Core: the core: 1.0.0] AndroidManifest. XML: make haste – 86 value = (androidx. Core. App. CoreComponentFactory)
Butterknife package latest address: https://github.com/JakeWharton/butterknife
implementation ‘com. Jakewharton: butterknife: 10.0.0’
annotationProcessor ‘com. Jakewharton: butterknife – compiler: 10.0.0’
Error details
Manifest merger failed : Attribute application @ appComponentFactory value = (. Android support. The v4. App. CoreComponentFactory) from [com. Android. Support: support – compat: 28.0.0] AndroidManifest. XML: make haste – 91
is also present at [androidx. Core: the core: 1.0.0] AndroidManifest. XML: value = “- 86 (androidx. Core. App. CoreComponentFactory).
the Suggestion: Add ‘tools: replace = “android: appComponentFactory” element to the at AndroidManifest. XML: 5:5 – the sons to override.
Solution 1: Add useAndroidX and enableJetifier as shown in the figure
android.useAndroidX=true
android.enableJetifier=true
Note:
this method does not need to add the classpath ‘com. Jakewharton: butterknife – gradle – plugin: 10.0.0’
but will import android. Support. V7. App. AppCompatActivity modified into import androidx. Appcompat. App. AppCompatActivity
is also all references Androidx package
Solution 2: Use the lower version of the package directly, as shown in the figure
Delete the build.Gradle plug-in at the top of the module, either one of the two below
apply plugin: ‘com.neenbedankt.android-apt’
apply plugin: ‘android-apt
The dependency in build.gradle under module is changed to :(only these two are needed)
// butterknife component injection
implementation'com.jakewharton:butterknife:8.6.0'
annotationProcessor'com.jakewharton:butterknife-compiler:8.6.0'
Note: the use of android package or the original
import android. Support. V7. App. AppCompatActivity
Read More:
- Execution failed for task ‘:app:processDebugManifest’.
- Error: package android.support.annotation Does not exist
- Error:Execution failed for task ‘: app:transformDexArchiveWithExternalLibsDexMergerForDebug The solution
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Failed to resolve: com.github
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- Errorjava.lang.NullPointerException(no error message)
- [Solved] Ktolin Android Project Compile Error: w: Runtime JAR files in the classpath should have the same version. These file
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android compilation error unresolved reference: kotlinx solution
- Manifest merger failed with multiple errors
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Android studio import project problems summary
- Add a warehouse in allprojects repositories and report an error
- Idea about module is not backed by gradle
- How to remove the title bar (using the request window feature)( Window.FEATURE_ NO_ Title); why it fails)
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation