getActivity / XXPermissions

Android 权限请求框架,已适配 Android 14
Apache License 2.0
5.78k stars 781 forks source link

[Question]:Class not found android.support.v4.app.Fragment #320

Open SudsMekathotti opened 1 month ago

SudsMekathotti commented 1 month ago

Question Description [Required]

Code fragment below. Please help with any pointers

XXPermissions.startPermissionActivity(MMXActivity.this, permissions); ^ class file for android.support.v4.app.Fragment not found

Is the issue mentioned in the framework documentation? [Required]

No

Did you consult the framework documentation but couldn't find a solution? [Required]

Yes

Has a similar issue been reported in the issue list? [Required]

No

Have you searched the issue list but couldn't find a solution? [Required]

Yes

getActivity commented 1 month ago

Did you add a support dependency?

SudsMekathotti commented 1 month ago

Thank you for the pointer. You're right. Was missing dependency compileOnly 'com.android.support:support-fragment:24.2.0' which I later found in the library/build.gradle.