-
Notifications
You must be signed in to change notification settings - Fork 833
Troubleshooting
If for some reason when picking you receive an error telling that permissions are already being request, picker is already active or similar.
Lately, there have been reports that projects that were started prior to Android V2 embedded, may need to update some properties in order to seamless support updated plugins.
Referring to EdwynZN answer on flutter permission handler plugin, following the official instructions to upgrade pre 1.12 Android projects, seem to fix.
Basically if your Android project MainActivity.java or kt is using io.flutter.app.FlutterActivity or your AndroidManifest.xml is using io.flutter.app.FlutterActivity or have
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
you'll need to update your Flutter project in order to work with the new Android plugin type system.
If your project fails building due to dependencies missing. Typically this happens with import androidx.lifecycle.DefaultLifecycleObserver; being not recognized.
Typically this happens because your project isn't fully supporting Android X. Please make sure you have completely migrated to it, by checking the official instructions or you can just check if the requirements below are met.
-
On your project's
android/app/build.gradlechange compileSdkVersion and targetSdkVersion to 28 -
Go to android/gradle.properties file and add the following lines:
android.useAndroidX=true
android.enableJetifier=true
I have an issue while picking multiple files from Photos app (gallery)
This plugin uses DKImagePickerController as sub-dependency for multi picks on Photos app because ImagePickerController from iOS SDK doesn't allow it. Thus, any issue directly related to it, should be filed on its official repo.