Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

269
Visualizações
Manifest merger failed : Attribute application@appComponentFactory...Android Studio 3.2

I'm following this tutorial: https://www.youtube.com/watch?v=xtElLuzjA0U

I'm using Android Studio 3.2.1 - Whenever I implement "implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'" I get this error:

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
 is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
 Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> 
element at AndroidManifest.xml:5:5-22:19 to override.

When I first did this tutorial, everything compiled and I was able to acquire the progress bar, but when I tried debugging and building, it crashed. Now, my second time around, implementing the dependency gives me the same error.

PS - I have it set to 4.4 - current android

I've looked at "https://developer.android.com/topic/libraries/support-library/packages" and when I cross reference, it seems I'm already including 28.0.0 - I'm not sure what to do from here.

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

/*third party  library*/
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'

}

What support does it need? I tried implementing tools:replace...But it just gives me a slew of errors.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Its because your project has different versions of the same library - androidx and pre-androidx. In android studio tool bar go to: Refactor-> Migrate to androidX... -> Migrate

over 4 years ago · Santiago Trujillo Relatório

0

These two lines automatically resolved my dependency conflicts

Add android.useAndroidX=true android.enableJetifier=true in your application gradle.properties file.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda