flutter-devs / image_gallery

A Flutter plugin to view images from Android/iOS gallery.
Other
39 stars 24 forks source link

Doesn't run on release mode #13

Closed Dev7Lw closed 4 years ago

Dev7Lw commented 4 years ago

Steps to reproduce:

ERROR:

FAILURE: Build failed with an exception.

BUILD FAILED in 21s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 22,7s The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. Building plugin camera... Running Gradle task 'assembleAarRelease'... Running Gradle task 'assembleAarRelease'... Done 3,0s

FAILURE: Build failed with an exception.

BUILD FAILED in 2s

Exception: The plugin camera could not be built due to the issue above.

Dev7Lw commented 4 years ago

Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 1.22.0-12.1.pre, on Microsoft Windows [versão 10.0.18363.1139], locale pt-BR)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [√] Android Studio (version 4.0) [√] VS Code (version 1.50.1) [√] Connected device (1 available)

• No issues found!

oGranny commented 3 years ago

hi @Dev7Lw , how did you fix this? I am also getting the same issue but cannot find any way to solve it

Dev7Lw commented 3 years ago

@oGranny Hi!

As far as I remember, i tried several solutions but nothing work. Then, i used another package and worked for me. As far as i remember, that was it.

oGranny commented 3 years ago

@Dev7Lw thanks for replying, Can you tell the package name? And what I found is it throws this error while building but it actually builds the apk I got to know this when I checked build folder It is working normally but still to be in safe side I wanted to know the solution, Thanks

Dev7Lw commented 3 years ago

@oGranny I used photo_manager to get all images of device Separate then in folders and finally load all images of selected album.

I kinda make a camera UI like Instagram, to do so i used:

path_provider: ^1.6.18
  photo_manager: ^0.5.8
  provider: ^4.3.2+2
  path: ^1.7.0
  camera: ^0.5.8+9

Hope this helps.