Open ynnob opened 1 month ago
build.gradle:
android {
namespace = "com.my.app"
compileSdk = 34
ndkVersion "26.1.10909125"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
// Default Config - Production
defaultConfig {
applicationId "com.my.app"
minSdkVersion 21
targetSdkVersion 34
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
multiDexEnabled true
}
[...]
}
Edit: I could confirm the Android Version of this EMUI V12 and it is Android 10 in this case.
This issue is stale because it has been open for 7 days with no activity.
Same here, problem in compression, when I set it to 0, the problem dissappears. By default compression value is 30.
Same here, problem in compression, when I set it to 0, the problem dissappears. By default compression value is 30.
Maybe i should set the compression to 0. I didn't even notice that there is a default compression. Thank you! But anyway i think this is still a bug and the previous issues should not have been closed.
Same problem with xiaomi mi 8 lite MIUI Global 12.0.3 Android 10 QKQ1.190910.002
I disabled compression and it worked
This issue is stale because it has been open for 7 days with no activity.
Anyone facing this issue just set compressionQuality to 0 and it will work fine (its 30 by default), we can close this issue for now ig
this issue just set compressio
That is just a workaround not a fix. A native default feature of file_picker should not crash any device.
Also just hit this. Wasted a lot of time on permissions etc. trying to get things working. As above, set compressionQuality to zero:
FilePickerResult? result = await FilePicker.platform.pickFiles(type: FileType.image, compressionQuality: 0);
This needs to be fixed.
this issue just set compressio
That is just a workaround not a fix. A native default feature of file_picker should not crash any device.
we all know this, getting a workaround and moving on is better than waiting for a fix which who knows when, i think, but your right, lets not close the issue
I managed to work around with help of permission_hander
package
var compressionQuality = 30;
var status = await Permission.storage.status;
if (status.isDenied) {
status = await Permission.storage.request();
if (status.isDenied) {
compressionQuality = 0;
}
}
final result = await FilePicker.platform.pickFiles(
type: FileType.image,
compressionQuality: compressionQuality,
);
Describe the bug Same as the closed issues #1461 , #1460 Fix should have been #1458
But for me and looking at the comments some other the app is still crashing after selecting an image using the file_picker 8.0.5
Permissions i list in my Manifest:
Platform
Platform OS version HUAWEI P30 Pro Android 10
How are you picking?
Details to reproduce the issue Provide all the details to reproduce the issue.
Error Log
Flutter Version details