Android Question activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't

KIM jihoon

Member
Licensed User
Longtime User
aab bundle to the play store. (return message)
"activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't"

I've searched the forum but couldn't find a solution. Any thoughts?
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="31"/>
B4A Version 11.80


Thanks in advance for any help
 

Attachments

  • AndroidManifest.xml
    17.5 KB · Views: 66
Last edited:

teddybear

Well-Known Member
Licensed User
I can't get your mind exactly, I guess you would like to add aplication section into manifest
then you can declare them explicityly using manifest editor
like this
B4X:
AddApplicationText(
    ...
    <receiver
      android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
      android:enabled="true"
      android:exported="true"
      android:permission="android.permission.INSTALL_PACKAGES" >
       <intent-filter>
          <action android:name="com.android.vending.INSTALL_REFERRER" />
       </intent-filter>
    </receiver>
   ....
)
 
Upvote 0

KIM jihoon

Member
Licensed User
Longtime User
Thanks teddybear for the help.

It is a problem of uploading a newly developed app to the Google Store.
I am trying to publish android 12 (sdk 31) as a store request, But I get a message that the upload failed.
B4A 11.80 Version

"activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't"

I think it's probably a "android:exported" problem
I've been looking for a solution, but I haven't been able to find a solution.
The attached file is the manifest for the upload app.

Couldn't find any errors in the manifest contents
Note> delete the Firebase Messaging Service (file) from App Features, it's fine.
Please review.
 
Last edited:
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
In this block you missed a line:
B4X:
'************ Firebase Notifications ************
AddApplicationText(
    <service
  android:name="com.google.firebase.messaging.FirebaseMessagingService"
  android:exported="true">
  <intent-filter android:priority="-500">
  <action android:name="com.google.firebase.MESSAGING_EVENT" />
  </intent-filter>
  </service>
   <service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService">
     <intent-filter>
  <action android:name="com.google.firebase.MESSAGING_EVENT"/>
     </intent-filter>
   </service>
)
the block should be:
B4X:
'************ Firebase Notifications ************
AddApplicationText(
    <service
  android:name="com.google.firebase.messaging.FirebaseMessagingService"
  android:exported="true">
  <intent-filter android:priority="-500">
  <action android:name="com.google.firebase.MESSAGING_EVENT" />
  </intent-filter>
  </service>
   <service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService"
   android:exported="true">    '<<< this is missed
     <intent-filter>
  <action android:name="com.google.firebase.MESSAGING_EVENT"/>
     </intent-filter>
   </service>
)
 
  • Like
Reactions: Opa
Upvote 0

KIM jihoon

Member
Licensed User
Longtime User

hi Hamied Abou Hulaikah !

<Edit Manifest>
<service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService"
android:exported="true"> '<<< this is missed

<Test result>

The following error occurs while installing Android 12
This problem is the same as the problem in the Google Store.
"There was a problem parsing the package"
 
Upvote 0

KIM jihoon

Member
Licensed User
Longtime User
Problem occurred when installing mobile phone (Android 12) after compiling.
But on other phones (Android 10) no problem.
 
Upvote 0
Top