close

[Fixed] android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify

Today We are Going To Solve android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify in Java. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify Error?

  1. How to Fix android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify Error?

    To Fix android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify Error just Add androidx.test.ext:junit. To solve this error you have to just add androidx.test.ext:junit in your compose.ui dependencies. androidTestImplementation "androidx.test.ext:junit:1.1.3" androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.0.4"

  2. android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify

    To Fix android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify Error just Make a change in your build Gradle file. You should make a change in your build Gradle file something like that. androidTestImplementation "androidx.fragment:fragment-testing:<version>"

Solution 1 : Add androidx.test.ext:junit

To solve this error you have to just add androidx.test.ext:junit in your compose.ui dependencies.

androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.0.4"

Solution 2 : Make a change in your build Gradle file

You should make a change in your build Gradle file something like that.

androidTestImplementation "androidx.fragment:fragment-testing:<version>"

Solution 2 : upgrade the flutter_local_notifications

If you are using flutter then just upgrade the flutter_local_notifications to the latest version. It will help you.

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read These Solutions

Leave a Comment