yanzhenjie / AndPermission

:strawberry: Permissions manager for Android platform.
https://yanzhenjie.com/AndPermission
Apache License 2.0
6.63k stars 1.1k forks source link

leaked IntentReceiver error #594

Open JackiePenghe opened 4 years ago

JackiePenghe commented 4 years ago

AndPermission.with(this) .runtime() .permission(Permission.READ_EXTERNAL_STORAGE,Permission.WRITE_EXTERNAL_STORAGE,Permission.ACCESS_BACKGROUND_LOCATION,Permission.ACCESS_COARSE_LOCATION,Permission.ACCESS_FINE_LOCATION) .onGranted(onGrantedListener) .onDenied(onDeniedListener) .rationale(rationaleListener) .start();

I use it in my Activity(That used to show a picture and delay some time to MainActivity) .But it throws error "has leaked IntentReceiver com.yanzhenjie.permission.bridge.Messenger@2d38588 that was originally registered here. Are you missing a call to unregisterReceiver()?".

My phone infomation: Honor V20 Magic UI 3.0.0 Android 10 how do I resolve it

cuibg commented 4 years ago

这个库貌似不更新了

ruan7k commented 4 years ago

不更新了android 10 有很多权限没法兼容了

cuibg commented 4 years ago

@ruan7k ,严大神,最近可能就会更新了!