Skip to content
Advertisement

Flutter/Android: You uploaded an APK which has activity […] but without the ‘android:exported’ property. exported=”true” not working

After uploading my app to the google play store for internal testing, I get the following error message:

JavaScript

I’ve tried setting the android:exported="true" in my manifest like so:

JavaScript

But I’m still getting the same error. In my build.gradle files I have these configs:

JavaScript

Feels like I have tried everything. Could this be an SDK version issue, or what could I be missing here?

Advertisement

Answer

What is exported receiver?

android:exported. Whether the broadcast receiver can receive messages from non-system sources outside its application — ” true ” if it can, and ” false ” if not.

You need to add the exported attribute for each of the activity pages in your AndroidManifest.xml file.

Example :

JavaScript
Advertisement