Quien me puede ayudar??? Hace varios días que no puedo generar mi APK para subir a la Playstore. Mi app estaba compilando con compileSdkVersion 30 y targetversion 30 actualice a (por politicas de playstore) a sdk y targetversion 31 y comienzan los problemas. Para generar la apk debug y signed apk sin problemas, ahora cuando quiero subir a la playstore me dice
"Has subido un APK o Android App Bundle que tiene una actividad, un alias de actividad, un servicio o un receptor de emisión con filtro de intents, pero sin establecer la propiedad android:exported. Este archivo no se puede instalar en Android 12 o versiones posteriores. Consulta developer.android.com/about/versions/12/behavior-changes-12#exported"
Bien... veo el archivo Androidmanifest.xml --> Merged Manifest y los siguientes errores son de Mercado pago y razorpay.
Merge Errors Error: android:exported needs to be explicitly specified for element <activity#com.mercadopago.android.px.internal.features.checkout.CheckoutActivity>. 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. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. Android_08-01-2022.app main manifest (this file), line 37 Error: android:exported needs to be explicitly specified for element <activity#com.razorpay.CheckoutActivity>. 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. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. Android_08-01-2022.app main manifest (this file), line 17 Error: android:exported needs to be explicitly specified for element <receiver#com.razorpay.RzpTokenReceiver>. 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. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. Android_08-01-2022.app main manifest (this file), line 11
A continuación Todo lo que hice para tratar de solucionar y sigue el problema.
Invalidate caches crean project rebuild project Actualizar razorpay y mercado pago... implementation 'com.mercadopago.android.px:checkout:4.53.1' la actualice a implementation 'com.mercadopago.android.px:checkout:4.53.2'
repositories { maven { url "https://dl.bintray.com/hani-momanii/maven" } // maven { url 'https://maven.fabric.io/public' } maven { url "https://jitpack.io" } maven { url 'https://artifacts.mercadolibre.com/repository/android-releases/' }
> Task :app:bundleReleaseResources
> Task :app:bundleReleaseResources
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"C:\\Users\\milo\\.gradle\\caches\\transforms-3\\8322820d8bc0952240c250b2101fdea0\\transformed\\material-1.3.0\\res\\values\\values.xml","position":{"startLine":1979,"startColumn":4,"startOffset":137268,"endLine":1989,"endColumn":10,"endOffset":138036}}],"original":"C:\\Users\\milo\\.gradle\\caches\\transforms-3\\8322820d8bc0952240c250b2101fdea0\\transformed\\material-1.3.0\\res\\values\\values.xml:1980:5-1990:11: AAPT: error: expected enum but got (raw string) slide.\n ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"C:\\Users\\milo\\.gradle\\caches\\transforms-3\\8322820d8bc0952240c250b2101fdea0\\transformed\\material-1.3.0\\res\\values\\values.xml","position":{"startLine":2519,"startColumn":4,"startOffset":171462,"endLine":2525,"endColumn":10,"endOffset":171916}}],"original":"C:\\Users\\milo\\.gradle\\caches\\transforms-3\\8322820d8bc0952240c250b2101fdea0\\transformed\\material-1.3.0\\res\\values\\values.xml:2520:5-2526:11: AAPT: error: expected enum but got (raw string) fade.\n ","tool":"AAPT"}
Este error al tratar de construir la app signed para subir a playstore actulizando MercadoPago