googlesamples / easypermissions

Simplify Android M system permissions
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
9.86k stars 1.46k forks source link

Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller (has extras) } #342

Open ZGuiHuang opened 2 years ago

ZGuiHuang commented 2 years ago

Basic Information

Device type: vivo V1813A OS version: Android 9 EasyPermissions version: 2.0.1

Describe the problem

Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller (has extras) }

Code and logs

Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller (has extras) } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2016) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1813) at android.app.Activity.startActivityForResult(Activity.java:5393) at android.app.Activity.requestPermissions(Activity.java:4593) at androidx.core.app.ActivityCompat.requestPermissions(SourceFile:7) at pub.devrel.easypermissions.f.b.a(SourceFile:1) at pub.devrel.easypermissions.f.e.g(SourceFile:3) at pub.devrel.easypermissions.EasyPermissions.h(SourceFile:11) at pub.devrel.easypermissions.EasyPermissions.f(SourceFile:4) at com.user.ui.activity.AvatarActivity.g(SourceFile:10)

// TODO(you): show the code that produces the problem,
//            and any relevant logs.