Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

App crashing when build for release #296

Open
jfdeveloper92 opened this issue Oct 7, 2020 · 1 comment
Open

App crashing when build for release #296

jfdeveloper92 opened this issue Oct 7, 2020 · 1 comment

Comments

@jfdeveloper92
Copy link

jfdeveloper92 commented Oct 7, 2020

My app is crashing when building release. For example Flutter build apk --release and installing the apk.
Seems to work find when running flutter run --release to the physical device.

This is a crash report from it. This is happening on multiple physical devices.

App works fine on iOS

java.lang.RuntimeException:
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4444)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4476)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2066)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7656)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
Caused by: java.lang.RuntimeException:
at java.lang.Enum.enumValues (Enum.java:270)
at java.lang.Enum.access$000 (Enum.java:61)
at java.lang.Enum$1.create (Enum.java:277)
at java.lang.Enum$1.create (Enum.java:275)
at libcore.util.BasicLruCache.get (BasicLruCache.java:63)
at java.lang.Enum.getSharedConstants (Enum.java:289)
at java.lang.Class.getEnumConstantsShared (Class.java:2428)
at java.util.EnumMap.getKeyUniverse (EnumMap.java:755)
at java.util.EnumMap. (EnumMap.java:138)
at me.dm7.barcodescanner.zxing.ZXingScannerView.f (ZXingScannerView.java:4)
at me.dm7.barcodescanner.zxing.ZXingScannerView. (ZXingScannerView.java:3)
at de.mintware.barcode_scan.ZXingAutofocusScannerView. (ZXingAutofocusScannerView.java:5)
at de.mintware.barcode_scan.BarcodeScannerActivity.setupScannerView (BarcodeScannerActivity.java:1)
at de.mintware.barcode_scan.BarcodeScannerActivity.onResume (BarcodeScannerActivity.java:1)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1456)
at android.app.Activity.performResume (Activity.java:8135)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4434)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4476)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2066)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7656)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
Caused by: java.lang.NoSuchMethodException:
at java.lang.Class.getMethod (Class.java:2072)
at java.lang.Class.getDeclaredMethod (Class.java:2050)
at java.lang.Enum.enumValues (Enum.java:267)
at java.lang.Enum.access$000 (Enum.java:61)
at java.lang.Enum$1.create (Enum.java:277)
at java.lang.Enum$1.create (Enum.java:275)
at libcore.util.BasicLruCache.get (BasicLruCache.java:63)
at java.lang.Enum.getSharedConstants (Enum.java:289)
at java.lang.Class.getEnumConstantsShared (Class.java:2428)
at java.util.EnumMap.getKeyUniverse (EnumMap.java:755)
at java.util.EnumMap. (EnumMap.java:138)
at me.dm7.barcodescanner.zxing.ZXingScannerView.f (ZXingScannerView.java:4)
at me.dm7.barcodescanner.zxing.ZXingScannerView. (ZXingScannerView.java:3)
at de.mintware.barcode_scan.ZXingAutofocusScannerView. (ZXingAutofocusScannerView.java:5)
at de.mintware.barcode_scan.BarcodeScannerActivity.setupScannerView (BarcodeScannerActivity.java:1)
at de.mintware.barcode_scan.BarcodeScannerActivity.onResume (BarcodeScannerActivity.java:1)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1456)
at android.app.Activity.performResume (Activity.java:8135)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4434)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4476)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2066)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7656)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

@jfdeveloper92
Copy link
Author

I discovered that it runs fine if I build the file from Mac. Doing so from windows dont see to be working. Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant