Apk crashes in some device

Hii, I have and issue facing know seems intrest to see that app is crashes in motorola devices and samsung devices and perfectly work on other devices why its happening it just crashes when we open app into moto or samsung devices it working fine in xaomi ,vivo, asus and all other phones what the issue ? Team expo help me out

Even a no changes in code directly build an sample apk which is pre written code in react native is crashes

2 Likes

Hey @sanatchoubey,

Welcome to the Expo community! Before we dive in, I’d like to ask you to please refrain from creating multiple posts for the same issue. It creates unnecessary noise on the forums.

We’ll need more information to be able to help you though such as what SDK version are you running and if there are any specific errors being reported with the crash. Have you been able to connect the devices via USB debugging and opening the device logs in Android Studio? Device logs are much more detailed and provide insight into why crashes are occurring.

Cheers,
Adam

hey @adamjnav ,
“sdkVersion”: “33.0.0” is am using in my apps
see what i found in logcat of android studio


i don’t know why this is happening, message in crashes is - wallpaper app has stopped

same problem, after i upgrade to 33.0 from 32.0
APK crash in samsung devices,
i used Galaxy J7 Prime.
OS 8.1.0 Oreo

06-18 14:53:22.415  8789  8789 E AndroidRuntime: FATAL EXCEPTION: main
06-18 14:53:22.415  8789  8789 E AndroidRuntime: Process: com.brambang.brambangapps2, PID: 8789
06-18 14:53:22.415  8789  8789 E AndroidRuntime: java.lang.RuntimeException: Canvas: trying to draw too large(108918432bytes) bitmap.
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.graphics.drawable.LayerDrawable.draw(LayerDrawable.java:1016)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.View.getDrawableRenderNode(View.java:20755)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.View.drawBackground(View.java:20691)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.View.draw(View.java:20471)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at com.android.internal.policy.DecorView.draw(DecorView.java:990)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.View.updateDisplayListIfDirty(View.java:19425)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:719)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:725)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:833)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ViewRootImpl.draw(ViewRootImpl.java:3632)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3419)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2954)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1863)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8072)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:723)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:658)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:790)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7000)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
06-18 14:53:22.415  8789  8789 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

i found the solution:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.