Closed orliu closed 1 year ago
I also faced this problem and fixed it through edit the configuration in build.gradle.
buildTypes {
release {
……
minifyEnabled false
shrinkResources false
}
}
I'm switching from qr_code_scanner
to this package because of same issue.
i still hope it is fixed without additional setting of minify and shrinkResources
Can you please check if you have the following lines in your app's gradle file:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Can you please check if you have the following lines in your app's gradle file:
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
Yes,I do have the same compileOptions and my compileSdkVersion is 31.
same with me
android {
compileSdkVersion 33
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
.....
}
Same here. I tried v 2.0.0
, 2.0.0-play-services
and 1.1.0
. For some reason just the release build type fails.
compileSdkVersion 32
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Can you please share on which device you are having this issue? I can't seem to reproduce this error.
Google Pixel 5 and Pixel 6. I will try to reproduce that on example app and possibly make a PR - maybe it's just obfuscation error
On Fri, 19 Aug 2022 at 15:18, Julian Steenbakker @.***> wrote:
Can you please share on which device you are having this issue? I can't seem to reproduce this error.
— Reply to this email directly, view it on GitHub https://github.com/juliansteenbakker/mobile_scanner/issues/221#issuecomment-1220670262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO4B2DTQOYDLOWCJBCGS3DVZ6CSVANCNFSM5233CYYQ . You are receiving this because you commented.Message ID: @.***>
UPDATE: I was going back in versioning and seems v1.1.0
is working properly. Is starts crashing from v1.1.1
. Blaming change, what what CHANGELOG says, I would bet on:
Update camera dependency for Android.
https://github.com/juliansteenbakker/mobile_scanner/compare/v1.1.0...v1.1.1
What do you think of reverting to camera2 v1.1.0 (which is stable now - https://developer.android.com/jetpack/androidx/releases/camera ):
What do you think of reverting to camera2 v1.1.0 (which is stable now - https://developer.android.com/jetpack/androidx/releases/camera ):
sound good
This issue is probably fixed with #257. I will release this as version 3.0.0 after i'm done with a few other functions.
@juliansteenbakker Great, thank you 🙌 Any clue when 3.0.0 is going to be released? I will use it immediately :)
App is crashing for me as well on release mode. @juliansteenbakker open this issue again.
worked fine on debug or profile.
$ flutter doctor
$ flutter run --release