Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It don't work with android 12 (API 31) #59

Closed
ravinandan25 opened this issue Jan 24, 2022 · 11 comments
Closed

It don't work with android 12 (API 31) #59

ravinandan25 opened this issue Jan 24, 2022 · 11 comments

Comments

@ravinandan25
Copy link

Same code works for android 11 but it shows this error for android 12:

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1183447910.tmp/base.apk (at Binary XML file line #86): com.umair.beacons_plugin.RebootBroadcastReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]`

I have already added :
"android:exported="true" inside activity in AndroidMainfest.xml. Sill its not working

@barangungor
Copy link

Same issue for me. @umair13adil can you fix it please?

@umair13adil
Copy link
Owner

I will fix this & send an update by today.

@barangungor
Copy link

barangungor commented Feb 3, 2022

@umair13adil I'm updated to version 2.0.7, i ran flutter clean -> pub get and try run my project but still same error.

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1838481334.tmp/base.apk (at Binary XML file line #270): org.altbeacon.beacon.startup.StartupBroadcastReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]

@umair13adil
Copy link
Owner

@barangungor This error is from the 'AltBeacon' library that my plugin is using. Let me see if there is any update for it. I will update & release the plugin again.

@ravinandan25
Copy link
Author

ravinandan25 commented Feb 4, 2022

I have a fork that plugin repo and made some changes that work for me. you can use my repo

add this instead of flutter beacon in pubspec.yml

beacons_plugin:
    git:
      url: `https://github.com/ravinandan25/simple_beacons_flutter.git`

and then in app base build.gradle made this changes:

compileSdkVersion 31
....
...  
minSdkVersion 23
targetSdkVersion 30

@vladaman
Copy link

I also get same issue with following receiver. Unfortunately @ravinandan25 git doesn't seem to work either.

android:exported needs to be explicitly specified for element <receiver#org.altbeacon.beacon.startup.StartupBroadcastReceiver>. 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.

@ravinandan25
Copy link
Author

ravinandan25 commented Feb 27, 2022

I also get same issue with following receiver. Unfortunately @ravinandan25 git doesn't seem to work either.

android:exported needs to be explicitly specified for element <receiver#org.altbeacon.beacon.startup.StartupBroadcastReceiver>. 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.

Did you made changes in " app base build.gradle" file? @vladaman

@barangungor
Copy link

@ravinandan25 can you look my issue? #61

@sandeepunify
Copy link

java.lang.SecurityException: Permission Denial: starting Intent { act=android.bluetooth.adapter.action.REQUEST_ENABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity } from ProcessRecord{321302e 23158:dw.ujjainapp.app/u0a438} (pid=23158, uid=10438) requires android.permission.BLUETOOTH_CONNECT

please solve this issue
This issue is happening on android 12

@umair13adil
Copy link
Owner

This issue is resolved in version "2.0.8".

@sachin-neurastats
Copy link

Hello @umair13adil results are not coming through on android 12 where as everything works fine on Android 11 or less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants