Install AndPermission via Gradle
masterAdd the following dependency to your build.gradle file. Note that AndPermission only supports AndroidX and requires a minimum Android API level of 14 (Android 4.0).
implementation 'com.yanzhenjie:permission:2.0.3'