Fixed
Status Update
Comments
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
ma...@gmail.com <ma...@gmail.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
ch...@google.com <ch...@google.com>
wu...@google.com <wu...@google.com>
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit b0ebb200765059684cda45208b4371ec7dc20607
Author: Charcoal Chen <charcoalchen@google.com>
Date: Wed Sep 29 14:32:40 2021
Fixed the AbstractMethodError issue which happens when proguard is enabled
- Catch the AbstractMethodError additionally so that the app can still get a default ExtensionsManager instance and won't crash.
- Add proguard-rules.pro in camera-extensions module
- Enable proguard for the extension test app.
Relnote: "Fixed the AbstractMethodError issue which happens when proguard is enabled."
Bug: 201177844
Test: ./gradlew camera:camera-extensions:build && ./gradlew camera:camera-extensions:connectedAndroidTest && manual test
Change-Id: Iae4688ef953751255c49eff8dfd205a6df226cbc
M camera/camera-extensions/build.gradle
M camera/integration-tests/extensionstestapp/build.gradle
A camera/integration-tests/extensionstestapp/proguard-rules.pro
A camera/camera-extensions/proguard-rules.pro
M camera/camera-extensions/src/main/java/androidx/camera/extensions/ExtensionsManager.java
https://android-review.googlesource.com/1839993
Branch: androidx-main
commit b0ebb200765059684cda45208b4371ec7dc20607
Author: Charcoal Chen <charcoalchen@google.com>
Date: Wed Sep 29 14:32:40 2021
Fixed the AbstractMethodError issue which happens when proguard is enabled
- Catch the AbstractMethodError additionally so that the app can still get a default ExtensionsManager instance and won't crash.
- Add proguard-rules.pro in camera-extensions module
- Enable proguard for the extension test app.
Relnote: "Fixed the AbstractMethodError issue which happens when proguard is enabled."
Bug: 201177844
Test: ./gradlew camera:camera-extensions:build && ./gradlew camera:camera-extensions:connectedAndroidTest && manual test
Change-Id: Iae4688ef953751255c49eff8dfd205a6df226cbc
M camera/camera-extensions/build.gradle
M camera/integration-tests/extensionstestapp/build.gradle
A camera/integration-tests/extensionstestapp/proguard-rules.pro
A camera/camera-extensions/proguard-rules.pro
M camera/camera-extensions/src/main/java/androidx/camera/extensions/ExtensionsManager.java
ch...@google.com <ch...@google.com> #5
The proguard-rules has been added in
ma...@gmail.com <ma...@gmail.com> #6
Awesome! Thanks - do you have an estimation of when the next release will happen?
ch...@google.com <ch...@google.com> #7
The next release might happen around the middle of Oct if no accident.
Description
Description
I am getting the error
on a lot of devices. It happens when I try to start the CameraX View, but I am not using any extensions - I only use
ImageAnalysis
.Unfortunately I cannot reproduce this issue locally to figure out the correct stack trace and exact line of code where this happens - as I have none of the devices available to test this.
Reproducibility
3 of 10
Reproduce
I am using CameraX through React Native .
It can be reproduced like this:
Then open
react-native-vision-camera/example/android
in Android studio and hit run.The error is being thrown somewhere in this code snippet . Unfortunately I don't have a full stacktrace so I can't pinpoint the exact line, but I'm onto that.
CameraX Version
1.1.0-alpha08
Android OS Build Number
Device Names