Closed JakubBizewski closed 9 months ago
Experiencing exactly the same issue with Samsung Galaxy S7 FE Android 13. I reverted back to version 3.0.0-beta.3 to make it work.
We also have the same issue after we updated CameraX dependencies to 1.2.2 in our project. We are investigating currently. I'll give you an update here after we find the cause or a workaround in our project.
Unfortunately we weren't able to identify the exact cause. We couldn't reproduce it locally and our client fixed it by updating their proguard rules, but they didn't tell us what they changed. Sorry I couldn't be more helpful.
Hey, ran into this issue while working on my Native Android app where I've implemented camerax etc. Had a hard time figuring out the actual missing method since the stacktrace I (and you from what it seems) had was obfuscated since the crash only appeared when app was built with the release variant.
So I added debuggable true
to my release variant in gradle to able to get some better stacktraces. The crash stacktrace now included the name of the missing method which made me try adding this to the proguard-rules.pro file:
-keep public class androidx.camera.core.impl.CameraCaptureMetaData$** { *; }
and bing bang bong it worked for me. Hopefully this works for you as well!
Hey, ran into this issue while working on my Native Android app where I've implemented camerax etc. Had a hard time figuring out the actual missing method since the stacktrace I (and you from what it seems) had was obfuscated since the crash only appeared when app was built with the release variant.
So I added
debuggable true
to my release variant in gradle to able to get some better stacktraces. The crash stacktrace now included the name of the missing method which made me try adding this to the proguard-rules.pro file:
-keep public class androidx.camera.core.impl.CameraCaptureMetaData$** { *; }
and bing bang bong it worked for me. Hopefully this works for you as well!
After adding the following line, app didn't crash. However, i have a new problem now. I am trying to scan a barcode but the device does not show the camera visuals though it scans the barcode successfully.
Hey, ran into this issue while working on my Native Android app where I've implemented camerax etc. Had a hard time figuring out the actual missing method since the stacktrace I (and you from what it seems) had was obfuscated since the crash only appeared when app was built with the release variant.
So I added
debuggable true
to my release variant in gradle to able to get some better stacktraces. The crash stacktrace now included the name of the missing method which made me try adding this to the proguard-rules.pro file:
-keep public class androidx.camera.core.impl.CameraCaptureMetaData$** { *; }
and bing bang bong it worked for me. Hopefully this works for you as well!
Thank you so much @DFerenczi. It worked for me too.
Hey, ran into this issue while working on my Native Android app where I've implemented camerax etc. Had a hard time figuring out the actual missing method since the stacktrace I (and you from what it seems) had was obfuscated since the crash only appeared when app was built with the release variant.
So I added
debuggable true
to my release variant in gradle to able to get some better stacktraces. The crash stacktrace now included the name of the missing method which made me try adding this to the proguard-rules.pro file:
-keep public class androidx.camera.core.impl.CameraCaptureMetaData$** { *; }
and bing bang bong it worked for me. Hopefully this works for you as well!
I've already attempted this recommendation, but it's still not effective in my case. Does anyone have any other suggestions I could try ?
Not sure how this is working for anybody on android. In release mode, there seem to be at least some functions which, are not added to proguard exceptions and get minified or shaken out, and crash with "NoSuchMethodExcpetion". The last working version was 2.1.0, every version after that seems to be broken.
Seems to be a problem with 2.1.0 as well. At least on compileSdkVersion 34 and android 14 on a pixel 7 pro.
Hello, I encountered an issue with this plugin on Android release version. When the camera starts after granting permission, the application crashes unexpectedly. This issue does not occur on the debug version or any other platform.
Device: AVD with Android 13, Motorola Moto E20, Huawei P30 pro mobile_scanner version: 3.2.0 Flutter version: 3.3.10 Android SDK: 33
Stack trace:
pubspec.yaml
build.gradle
Please let me know if you need any additional information or if there's a workaround for this issue. Thank you!