0

enter image description here

I don't know where is the problem here

2 Answers2

0
  1. in your build.gradle(Project) file use mavenCentral() instead of jcenter()

By doing so, maven now becomes the primary repository for all non-Google artifacts.

  1. Clean and Rebuild your project
Meggrain
  • 178
  • 10
  • how to clean and rebuild project! – youssef benjouida Oct 30 '21 at 11:45
  • click on ```Build``` tab, you'll see ```clean``` and ```Rebuild``` – Meggrain Oct 30 '21 at 11:50
  • 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 – youssef benjouida Oct 30 '21 at 12:00
0
  1. On Android Studio Click the SDK Manager Icon on the toolbar

enter image description here

  1. On the dialog SDK Tools Tab - 2nd Tab

enter image description here

  1. At the bottom of the dialogue window Tick the Checkbox for Show Package Details

4.Next find Build 31.0.0 and uncheck it to uninstall it

enter image description here

5.Press Apply and OK Buttons to exit the dialogue

  1. Now Repeat Step 1-4 but this time check/tick the checkbox to install another version of Build Tools 31.0.0.0

  2. Restart Android Studio and the problem should be resolved.

For the Merger problem, you need to open your Manifest file and add this line of code inside the <activity><activity/> tag

android:exported="true"

enter image description here

Tonnie
  • 4,865
  • 3
  • 34
  • 50
  • 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 – youssef benjouida Oct 30 '21 at 11:56
  • Hi Youssef, you need to add `android:exported="true"` inside the your `AndroidManifest.xml` file as shown above. – Tonnie Oct 30 '21 at 12:30