Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

653
Vistas
Manifest merger failed for <receiver> when migrating to android 12 despite adding android: exported flag

I am trying migrating my app to android 12 by changing the target SDK version to 31 in build.gradle. As required, I have added android:exported flag to every activity/receiver/services/provider tags present in my manifest file. But still I am getting this error.

Manifest merger failed : android:exported needs to be explicitly specified for <receiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.

So I am guessing this issue is due to any 3rd party library whose manifest contains a receiver without android:exported flag.

I have also checked merged manifest file for missing android:exported in components of any third party libraries. But in merged manifest file also all activity/receiver/services tags has exported flag.

So how can I find that missing receiver which is causing the issue.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The reason is because some of the dependency libraries that you're using have elements which do not have "android:exported" attribute.

You need to do this:

  • Lower the version in your gradle to 30 and sync and build.
  • Go to your AndroidManifest.xml file and click on "Merged Manifest".
  • Find items that don't have "android:exported" attribute.
  • Then add them to your AndroidManifest.xml file in this way.
<activity
    android:name="SomeActivity"
    android:exported="false"
    tools:node="merge"
    tools:replace="android:exported" />

Now you can increase your version to 31.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda