guolindev / PermissionX

An open source Android library that makes handling runtime permissions extremely easy.
Apache License 2.0
3.54k stars 407 forks source link

在Flutter项目里无法调用PermissionX.init() #211

Open luqiming666 opened 2 years ago

luqiming666 commented 2 years ago

原因是,FlutterActivity继承自android.app.Activity 而非androidx.fragment.app.FragmentActivity或androidx.fragment.app.Fragment。

// Flutter项目 class MainActivity: FlutterActivity()

请教郭神:这个问题怎么解?

yinanwang1 commented 3 months ago

同问