Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on android #544

Open
benjamin1571 opened this issue Jan 11, 2025 · 15 comments
Open

App crashes on android #544

benjamin1571 opened this issue Jan 11, 2025 · 15 comments
Labels
android Android related issue bug Something isn't working priority 1

Comments

@benjamin1571
Copy link

Steps to Reproduce

Create an app install camerawesome

Expected results

camera is expected to launch

Actual results

app crashes on launch

About your device

Brand Model OS
Oppo Reno8 T 14

Your flutter version

Run this in your command line
Flutter (Channel stable, 3.27.1)

the error i got

D/QuirkSettingsLoader(13845): QuirkSettings$MetadataHolderService is not found.
D/CameraX (13845): QuirkSettings from app metadata: null
D/CameraX (13845): QuirkSettings by default: QuirkSettings{enabledWhenDeviceHasQuirk=true, forceEnabledQuirks=[], forceDisabledQuirks=[]}
I/CameraManagerExtImpl(13845): getInstance success!
I/CameraManagerExtImpl(13845): packagename is com.rekomile.rekomile
I/OplusCameraManager(13845): saveOpPackageName, mOpPackageName: com.rekomile.rekomile
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
I/OplusCameraManagerGlobal(13845): Connecting to camera service
I/CameraManagerGlobal(13845): Connecting to camera service
D/OplusCameraUtils(13845): new OplusCameraUtils!
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
I/Camera2CameraInfo(13845): Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_FULL
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
I/Camera2CameraInfo(13845): Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_FULL
I/OplusCameraManagerGlobal(13845): setClientInfo, packageName: com.rekomile.rekomile, uid: 10444, pid: 13845
D/BufferQueueConsumer(13845): connect: controlledByApp=true
D/libMEOW (13845): meow new tls: 0xb400007312fb1b80
D/libMEOW (13845): applied 1 plugins for [com.rekomile.rekomile]:
D/libMEOW (13845): plugin 1: [libMEOW_gift.so]: 0xb4000074896fe480
D/libMEOW (13845): rebuild call chain: 0xb40000731380d640
I/flutter (13845): [IMPORTANT:flutter/shell/platform/android/platform_view_android.cc(308)] Flutter recommends migrating plugins that create and register surface textures to the new surface producer API. See https://docs.flutter.dev/release/breaking-changes/android-surface-plugins
I/mali (13845): [DebugProp] GPU Debug-Mechanism Disable !
V/SystemSensorManagerExtImpl(13845): RegisterListener icm4n607 acc type:1 delay:200000us by android.view.OrientationEventListener$SensorEventListenerImpl@baedc9c from com.rekomile.rekomile
E/AndroidRuntime(13845): FATAL EXCEPTION: main
E/AndroidRuntime(13845): Process: com.rekomile.rekomile, PID: 13845
E/AndroidRuntime(13845): java.lang.NoSuchMethodError: No virtual method setCameraSelector(Landroidx/camera/core/CameraSelector;)Landroidx/camera/core/Preview$Builder; in class Landroidx/camera/core/Preview$Builder; or its super classes (declaration of 'androidx.camera.core.Preview$Builder' appears in /data/app/~~1R7NtO1jSLCCL469qGvj6Q==/com.rekomile.rekomile-DdTT9w5qfYVLmSlW2C8jcA==/base.apk)
E/AndroidRuntime(13845): at com.apparence.camerawesome.cameraX.CameraXState.updateLifecycle(CameraXState.kt:202)
E/AndroidRuntime(13845): at com.apparence.camerawesome.cameraX.CameraAwesomeX.setupCamera(CameraAwesomeX.kt:169)
E/AndroidRuntime(13845): at com.apparence.camerawesome.cameraX.CameraInterface$Companion.setUp$lambda$1$lambda$0(Pigeon.kt:834)
E/AndroidRuntime(13845): at com.apparence.camerawesome.cameraX.CameraInterface$Companion.$r8$lambda$bDRy0np_C7lk8Bj7abpR_h2q7QU(Unknown Source:0)
E/AndroidRuntime(13845): at com.apparence.camerawesome.cameraX.CameraInterface$Companion$$ExternalSyntheticLambda0.onMessage(Unknown Source:2)
E/AndroidRuntime(13845): at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:261)
E/AndroidRuntime(13845): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/AndroidRuntime(13845): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/AndroidRuntime(13845): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime(13845): at android.os.Handler.handleCallback(Handler.java:958)
E/AndroidRuntime(13845): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13845): at android.os.Looper.loopOnce(Looper.java:257)
E/AndroidRuntime(13845): at android.os.Looper.loop(Looper.java:368)
E/AndroidRuntime(13845): at android.app.ActivityThread.main(ActivityThread.java:8839)
E/AndroidRuntime(13845): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13845): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
E/AndroidRuntime(13845): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

@benjamin1571
Copy link
Author

it was working fine until i upgraded flutter and gradle

@g-apparence g-apparence added bug Something isn't working android Android related issue priority 1 labels Jan 12, 2025
@miladrashidizade
Copy link

I have same error

@EngZeeshanAli
Copy link

Same Issue found on Nothing 2A Android 14

@mark-sdb
Copy link

Same here, rollback to 3.24 "fixes" it for now.

@dmitry-kotorov
Copy link

Same here. Downgrading dependency to camera_android_camerax: 0.6.10+1 helps for now

@ProgUser145
Copy link

Any updates on this one? It's very important for android users

@g-apparence
Copy link
Collaborator

I am working on upgrading all dependencies.
Yet everything seems working but I need to do more test

@misteloo
Copy link

Same issue , facing force stope on android device
Flutter version 3.27.2

@g-apparence
Copy link
Collaborator

Ok android works now, I need to finish implementing swift package manager for iOS

@benjamin1571
Copy link
Author

Thanks, but when should we be expecting a plug-in update

@DauduVictor
Copy link

DauduVictor commented Jan 23, 2025

Ok android works now, I need to finish implementing swift package manager for iOS

Hello, any timeline on when this will be resolved?, so we can manage people higher up the chain :)

@g-apparence
Copy link
Collaborator

You can try this @benjamin1571 @DauduVictor @misteloo

#547
I haven't found any issue on this version. But some more tests would be great

@g-apparence
Copy link
Collaborator

On android I tried to upgrade CameraX but they deprecated to many things recently without any instruction on how to migrate

@benjamin1571
Copy link
Author

Ohh, thanks for the feedback, that simply means it will take a while to fix

@g-apparence
Copy link
Collaborator

It's all working
Just on a cameraX version that is from 8 months ago.
Above that many methods have been removed completely and I have to figure out out to replace them (that's really not cool from CameraX team :'( )

I have to finish fixing the example and I'll be able to publish the new version

@g-apparence g-apparence marked this as a duplicate of #545 Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android related issue bug Something isn't working priority 1
Projects
None yet
Development

No branches or pull requests

9 participants