howljs / hl_image_picker

Simplify media selection, cropping, and camera functionality in your Flutter app. Choose images/videos from the library, crop images, and capture new photos/videos with ease.
https://pub.dev/packages/hl_image_picker
20 stars 12 forks source link

Android device cannot add pictures. #29

Closed no-chili closed 1 month ago

no-chili commented 2 months ago

//log

E/OpenGLRenderer( 6761): Unable to match the desired swap behavior.
W/WindowOnBackDispatcher( 6761): sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda17@a1a7032

//env

[✓] Flutter (Channel stable, 3.19.6, on macOS 13.6 22G120 darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.88.0)
[✓] Connected device (4 available)            
[✓] Network resources

! Doctor found issues in 1 category.
howljs commented 2 months ago

//log

E/OpenGLRenderer( 6761): Unable to match the desired swap behavior.
W/WindowOnBackDispatcher( 6761): sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda17@a1a7032

//env

[✓] Flutter (Channel stable, 3.19.6, on macOS 13.6 22G120 darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.88.0)
[✓] Connected device (4 available)            
[✓] Network resources

! Doctor found issues in 1 category.

Thanks for your report. What is your Android version?

no-chili commented 2 months ago
  minSdkVersion 21

I'm sorry, I don't know where to check the Android version, but I received many user feedbacks stating that they are unable to add images. After confirming, I switched back to the 'image_picker' package on the Android side, and it works fine on iOS.

no-chili commented 1 month ago

I apologize, but the reason for the inability to add is due to my incorrect renaming of the file, and there is no issue with the plugin.