I'm having this error on a Jetpack Compose project.
Manifest merger failed : android:exported needs to be explicitly specified for . 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
It all started when I added this dependency
implementation 'com.shakebugs:shake:14.4.0'
I followed the setup here https://www.shakebugs.com/docs/android/setup
Here is my Manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uticodes.compose_otp_input_field">
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Compose_otp_input_field">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.Compose_otp_input_field.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest> ```
App class
```class App : Application() {
override fun onCreate() {
super.onCreate()
Shake.getReportConfiguration().isInvokeShakeOnShakeDeviceEvent = true
Shake.start(this, "clientId", "clientScret")
}
} ```
My compileSdk ```compileSdk 31 ``` , ```minSdk 21``` , ``` kotlinCompilerVersion '1.5.21'``` , ```compose_version = '1.0.1' ``` , ```gradle:7.0.1 ```