flutter - got stuck at splash screen - android

I try to run my mobile apps that built using flutter but get stuck at a splash screen. Using adb logcat tools I can see some of error/exception but I have no idea which one of these exception cause the error:
codeinrain04-06 17:51:22.604 7234 7253 I FA : To enable faster debug mode event logging run:
04-06 17:51:22.604 7234 7253 I FA : adb shell setprop debug.firebase.analytics.app co.blocksite
04-06 17:51:22.619 7234 7234 W com.facebook.aa: Please set a value for AutoLogAppEventsEnabled. Set the flag to TRUE if you want to collect app install, app launch and in-app purchase events automatically. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-android#disable-auto-events.
04-06 17:51:22.619 7234 7234 W com.facebook.aa: The value for AdvertiserIDCollectionEnabled is currently set to FALSE so you're sending app events without collecting Advertiser ID. This can affect the quality of your advertising and analytics results.
04-06 17:51:22.656 7234 7259 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-06 17:51:22.803 7234 7234 I GAv4 : Google Analytics 12.4.51 is starting up. To enable debug logging on a device run:
04-06 17:51:22.803 7234 7234 I GAv4 : adb shell setprop log.tag.GAv4 DEBUG
04-06 17:51:22.803 7234 7234 I GAv4 : adb logcat -s GAv4
04-06 17:51:22.950 686 686 W memtrack#1.0-se: type=1400 audit(0.0:363678): avc: denied { search } for name="proc" dev="debugfs" ino=14021 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
04-06 17:51:23.038 4040 7295 I CheckinUtil: Classify the device as Phone.
04-06 17:51:23.099 4040 7295 W Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed
04-06 17:51:23.101 4040 7295 W Conscrypt: at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms#200914021#20.09.14 (040408-300565878):2)
04-06 17:51:23.101 4040 7295 W Conscrypt: at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms#200914021#20.09.14 (040408-300565878):0)
04-06 17:51:23.180 4040 7295 W Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed
04-06 17:51:23.180 4040 7295 W Conscrypt: at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms#200914021#20.09.14 (040408-300565878):2)
04-06 17:51:23.180 4040 7295 W Conscrypt: at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms#200914021#20.09.14 (040408-300565878):0)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: com.android.vending.billing.IInAppBillingService$Stub is not available, please add com.android.vending.billing.IInAppBillingService$Stub to the project.
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: java.lang.ClassNotFoundException: Didn't find class "com.android.vending.billing.IInAppBillingService$Stub" on path: DexPathList[[zip file "/data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/base.apk", zip file "/data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/split_config.in.apk", zip file "/data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/split_config.xxhdpi.apk"],nativeLibraryDirectories=[/data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/lib/arm64, /system/lib64, /system/vendor/lib64]]
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.facebook.a.b.g.a(InAppPurchaseEventManager.java:611)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.facebook.a.b.g.a(InAppPurchaseEventManager.java:633)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.facebook.a.b.g.a(InAppPurchaseEventManager.java:627)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.facebook.a.b.g.a(InAppPurchaseEventManager.java:125)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.facebook.a.b.f$1.onServiceConnected(InAppPurchaseActivityLifecycleTracker.java:108)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1634)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1663)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.os.Handler.handleCallback(Handler.java:789)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.os.Handler.dispatchMessage(Handler.java:98)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.os.Looper.loop(Looper.java:251)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread.main(ActivityThread.java:6572)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at java.lang.reflect.Method.invoke(Native Method)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: Suppressed: java.io.IOException: No original dex files found for dex location /data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/split_config.in.apk
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.openDexFileNative(Native Method)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.openDexFile(DexFile.java:353)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.<init>(DexFile.java:100)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.<init>(DexFile.java:74)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.<init>(DexPathList.java:157)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:69)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:36)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:676)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.getClassLoader(LoadedApk.java:709)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.getResources(LoadedApk.java:936)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ContextImpl.createAppContext(ContextImpl.java:2249)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5703)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread.-wrap1(Unknown Source:0)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1666)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.os.Handler.dispatchMessage(Handler.java:105)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: ... 5 more
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: Suppressed: java.io.IOException: No original dex files found for dex location /data/app/co.blocksite-2VTx-MhglDslsD5oY8oe7g==/split_config.xxhdpi.apk
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.openDexFileNative(Native Method)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.openDexFile(DexFile.java:353)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.<init>(DexFile.java:100)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexFile.<init>(DexFile.java:74)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.DexPathList.<init>(DexPathList.java:157)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:69)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:36)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:676)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.getClassLoader(LoadedApk.java:709)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.LoadedApk.getResources(LoadedApk.java:936)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ContextImpl.createAppContext(ContextImpl.java:2249)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5703)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread.-wrap1(Unknown Source:0)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1666)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: at android.os.Handler.dispatchMessage(Handler.java:105)
04-06 17:51:23.299 7234 7234 E com.facebook.a.b.g: ... 5 more
04-06 17:51:23.405 5872 5875 E nightwatch-watcher: Failed to read from logcat: Success
04-06 17:51:24.405 5872 5875 E nightwatch-watcher: Failed to read from logcat: Success
04-06 17:51:24.613 2485 27804 I AudioPolicyManagerCustom: FLAG None hence request for a primary output
04-06 17:51:24.613 2485 27804 I AudioPolicyManagerCustom: FLAG None hence request for a primary output
04-06 17:51:24.618 675 25117 D audio_hw_primary: start_output_stream: enter: stream(0xe69b1000)usecase(1: low-latency-playback) devices(0x2)
04-06 17:51:24.619 675 25117 D audio_hw_primary: select_devices for use case (low-latency-playback)
04-06 17:51:24.619 702 772 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
04-06 17:51:24.620 675 25117 D audio_hw_primary: select_devices: btsco_unavailable(0), mode(0), out_snd_device(speaker), in_snd_device(), BTSCO on?(0)
04-06 17:51:24.620 675 25117 D audio_hw_extn: audio_extn_get_anc_enabled: anc_enabled:0
04-06 17:51:24.620 675 25117 D audio_hw_primary: select_devices: out_snd_device(84: speaker) in_snd_device(0: )
04-06 17:51:24.620 675 25117 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-06 17:51:24.621 675 25117 D msm8974_platform: platform_split_snd_device: snd_device(84) num devices(1) new_snd_devices(0)
04-06 17:51:24.621 675 25117 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 84
04-06 17:51:24.621 675 25117 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-06 17:51:24.621 675 25117 D audio_hw_extn: audio_extn_get_anc_enabled: anc_enabled:0
04-06 17:51:24.621 675 25117 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
04-06 17:51:24.621 675 25117 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
04-06 17:51:24.621 675 25117 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
04-06 17:51:24.621 675 25117 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
04-06 17:51:24.621 675 25117 D audio_hw_primary: check_usecases_codec_backend:becf: (59) check_usecases curr device: speaker, usecase device: backends match 0
04-06 17:51:24.621 675 25117 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
04-06 17:51:24.621 675 25117 D hardware_info: hw_info_append_hw_type : device_name = speaker
04-06 17:51:24.621 675 25117 D audio_hw_spkr_prot: set_spkr_prot_cal: quick calibration disabled
04-06 17:51:24.621 675 25117 D audio_hw_spkr_prot: audio_extn_spkr_prot_start_processing: snd_device(84: speaker)
04-06 17:51:24.637 675 25117 D hardware_info: hw_info_append_hw_type : device_name = vi-feedback
04-06 17:51:24.637 675 25117 D msm8974_platform: platform_split_snd_device: snd_device(242) num devices(0) new_snd_devices(0)
04-06 17:51:24.637 675 25117 D audio_hw_primary: enable_snd_device: snd_device(242: vi-feedback)
04-06 17:51:24.637 675 25117 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device vi-feedback
04-06 17:51:24.637 675 25117 D msm8974_platform: platform_split_snd_device: snd_device(242) num devices(0) new_snd_devices(0)
04-06 17:51:24.638 675 25117 E audio_hw_utils: send_app_type_cfg_for_device: Could not get ctl for mixer cmd - Audio Stream Capture 42 App Type Cfg
04-06 17:51:24.638 675 25117 E voice : voice_is_in_call_rec_stream: input stream is NULL
04-06 17:51:24.638 675 25117 D msm8974_platform: platform_split_snd_device: snd_device(242) num devices(1) new_snd_devices(0)
04-06 17:51:24.638 675 25117 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 102, path = 1, app id = 0x11132, sample rate = 48000
04-06 17:51:24.638 675 25117 D ACDB-LOADER: ACDB -> send_asm_topology
04-06 17:51:24.638 675 25117 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
04-06 17:51:24.639 675 25117 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
04-06 17:51:24.639 675 25117 D audio_hw_primary: enable_audio_route: apply mixer and update path: spkr-vi-record
04-06 17:51:24.696 675 25117 E voice : voice_is_in_call_rec_stream: input stream is NULL
04-06 17:51:24.696 675 25117 D msm8974_platform: platform_split_snd_device: snd_device(249) num devices(1) new_snd_devices(0)
04-06 17:51:24.696 675 25117 D msm8974_platform: Resetting app type for Tx path to default
04-06 17:51:24.696 675 25117 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 8000
04-06 17:51:24.696 675 25117 D ACDB-LOADER: ACDB -> send_asm_topology
04-06 17:51:28.902 693 693 I WifiHAL : Got channel list with 0 channels
04-06 17:51:34.180 675 25117 D ACDB-LOADER: ACDB -> send_audstrmtable
04-06 17:51:34.180 675 25117 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
04-06 17:51:34.536 6400 7364 I PlayCommon: [4374] amjg.c(160): Connecting to server: https://play.googleapis.com/play/log?format=raw&proto_v2=true
04-06 17:51:34.546 7337 7355 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
04-06 17:51:34.546 7337 7355 I DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
04-06 17:51:34.546 7337 7355 V DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
04-06 17:51:34.582 6400 7364 I PlayCommon: [4374] amjg.c(187): Successfully uploaded logs.
04-06 17:51:34.586 7337 7355 I DynamiteLoaderV2: [71] AdsFdrDynamite.integ
04-06 17:51:34.627 6400 7357 I Finsky : [4372] kzb.a(3): Flushing event logs for [2PfsML0Opm97BNp3Vmjneg0WGYl9g1k4XoksxIgDcKo]
04-06 17:51:34.630 7337 7355 W zygote64: Skipping duplicate class check due to unrecognized classloader
04-06 17:51:34.640 6400 7370 I PlayCommon: [4375] amjg.c(26): Preparing logs for uploading
04-06 17:51:34.652 2595 2595 D QSEECOMAPI: Loaded image: APP id = 15532035
04-06 17:51:34.653 6400 7370 I PlayCommon: [4375] amjg.c(160): Connecting to server: https://play.googleapis.com/play/log?format=raw&proto_v2=true
04-06 17:51:34.656 6400 7226 I PlayCommon: [4370] amjg.c(187): Successfully uploaded logs.
04-06 17:51:34.674 7337 7337 I FIAM.Headless: Starting InAppMessaging runtime with Instance ID e8A6chHg1Aw
04-06 17:51:34.680 4670 7353 I FSA2_SyncState: #readSyncState: # anav#1cf57a1d
04-06 17:51:34.682 7337 7366 I FA : App measurement is starting up, version: 16250
04-06 17:51:34.683 7337 7366 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
04-06 17:51:34.683 7337 7366 I FA : To enable faster debug mode event logging run:
04-06 17:51:34.683 7337 7366 I FA : adb shell setprop debug.firebase.analytics.app z.zapps
04-06 17:51:34.695 7337 7376 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-06 17:51:34.705 6400 7370 I PlayCommon: [4375] amjg.c(187): Successfully uploaded logs.
04-06 17:51:34.736 2595 2595 D QSEECOMAPI: QSEECom_dealloc_memory
04-06 17:51:34.736 2595 2595 D QSEECOMAPI: QSEECom_shutdown_app, app_id = 15532035
04-06 17:51:34.742 7337 7337 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
04-06 17:51:34.749 6400 7357 I Finsky : [4372] kzb.a(3): Flushing event logs for [C2HVsP0RayqcvyZDLh2MyqiGl_QkpHbeZvmi7nFXm6I]
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: NetClient: java.lang.IllegalArgumentException: Unexpected char 0x00 at 15 in header value: 358970073360390??
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.squareup.okhttp.Headers$Builder.checkNameAndValue(Headers.java:295)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.squareup.okhttp.Headers$Builder.set(Headers.java:275)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.squareup.okhttp.Request$Builder.header(Request.java:185)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.utils.NetClient.executeHttpRequestImpl(NetClient.java:209)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.utils.NetClient.executeHttpRequest(NetClient.java:91)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.utils.NetClient.executeHttpRequest(NetClient.java:79)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.cloudconfig.CloudConfigurator.handleImeiCheck(CloudConfigurator.java:600)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.cloudconfig.CloudConfigurator.handleCloudIntent(CloudConfigurator.java:196)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at com.sonymobile.deviceconfigtool.EnterpriseConfigService$IntentHandler.run(EnterpriseConfigService.java:131)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
04-06 17:51:34.761 6146 6600 E DeviceConfigTool: at java.lang.Thread.run(Thread.java:764)
04-06 17:51:34.766 7337 7379 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
04-06 17:51:34.778 7337 7337 I FirebaseInitProvider: FirebaseApp initialization successful
04-06 17:51:35.041 6400 7357 I Finsky : [4372] urh.a(16): SCH: jobFinished: 16-16161616. TimeElapsed: 656ms.
04-06 17:51:35.225 7337 7337 I Adreno : QUALCOMM build : 8aaecb6, Ib515ec08c2
04-06 17:51:35.225 7337 7337 I Adreno : Build Date : 10/19/17
04-06 17:51:35.225 7337 7337 I Adreno : OpenGL ES Shader Compiler Version: EV031.20.00.04
04-06 17:51:35.225 7337 7337 I Adreno : Local Branch :
04-06 17:51:35.225 7337 7337 I Adreno : Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.6.5.R1.08.00.00.312.030
04-06 17:51:35.225 7337 7337 I Adreno : Remote Branch : NONE
04-06 17:51:35.225 7337 7337 I Adreno : Reconstruct Branch : NOTHING
04-06 17:51:35.227 7337 7337 I vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8996.so from the current namespace instead.
04-06 17:51:35.233 7337 7337 I Adreno : PFP: 0x005ff087, ME: 0x005ff063
04-06 17:51:35.353 2707 2717 I zygote64: Background concurrent copying GC freed 206277(10MB) AllocSpace objects, 90(13MB) LOS objects, 34% free, 46MB/70MB, paused 8.313ms total 488.411ms
04-06 17:51:35.411 5872 5875 E nightwatch-watcher: Failed to read from logcat: Success
04-06 17:51:35.661 7337 7423 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'defaultBinaryMessenger' was called on null.
04-06 17:51:35.661 7337 7423 E flutter : Receiver: null
04-06 17:51:35.661 7337 7423 E flutter : Tried calling: defaultBinaryMessenger
04-06 17:51:35.661 7337 7423 E flutter : #0 defaultBinaryMessenger (package:flutter/src/services/binary_messenger.dart:90)
04-06 17:51:35.661 7337 7423 E flutter : #1 MethodChannel.binaryMessenger (package:flutter/src/services/platform_channel.dart:140)
04-06 17:51:35.661 7337 7423 E flutter : #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314)
04-06 17:51:35.661 7337 7423 E flutter : #3 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:349)
04-06 17:51:35.661 7337 7423 E flutter : #4 MethodChannelSharedPreferencesStore.getAll (package:shared_preferences_platform_interface/method_channel_shared_preferences.dart:54)
04-06 17:51:35.661 7337 7423 E flutter : #5 SharedPreferences._getSharedPreferencesMap (package:shared_preferences/shared_preferences.dart:166)
04-06 17:51:35.661 7337 7423 E flutter : #6 SharedPreferences.getInstance (package:shared_preferences/shared_preferences.dart:33)
04-06 17:51:35.661 7337 7423 E flutter : #7 _prefs (package:zapps/src/translations.dart:11)
04-06 17:51:35.661 7337 7423 E flutter : #8 _prefs (package:zapps/src/translations.dart:11)
04-06 17:51:35.661 7337 7423 E flutter : #9 Translations._getApplicationSavedInformation (package:zapps/src/translations.dart:109)
04-06 17:51:35.661 7337 7423 E flutter : #10 Translations.getPreferredLanguage (package:zapps/src/translations.dart:57)
04-06 17:51:35.661 7337 7423 E flutter : #11 Translations.setNewLanguage (package:zapps/src/translations.dart:69)
04-06 17:51:35.661 7337 7423 E flutter : #12 Translations.init (package:zapps/src/translations.dart:48)
04-06 17:51:35.661 7337 7423 E flutter : #13 main (package:zapps/main.dart:20)
04-06 17:51:35.661 7337 7423 E flutter : #14 _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:239)
04-06 17:51:35.661 7337 7423 E flutter : #15 _rootRun (dart:async/zone.dart:1126)
04-06 17:51:35.661 7337 7423 E flutter : #16 _CustomZone.run (dart:async/zone.dart:1023)
04-06 17:51:35.661 7337 7423 E flutter : #17 _runZoned (dart:async/zone.dart:1518)
04-06 17:51:35.661 7337 7423 E flutter : #18 runZoned (dart:async/zone.dart:1502)
04-06 17:51:35.661 7337 7423 E flutter : #19 _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:231)
04-06 17:51:35.661 7337 7423 E flutter : #20 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:307)
04-06 17:51:35.661 7337 7423 E flutter : #21 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174)
04-06 17:51:35.661 7337 7423 E flutter :
04-06 17:51:35.790 7337 7337 I DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
04-06 17:51:35.790 7337 7337 I DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
04-06 17:51:35.793 7337 7337 D DynamitePackage: Instantiated singleton DynamitePackage.
04-06 17:51:35.793 7337 7337 D DynamitePackage: Instantiating com.google.android.gms.ads.reward.ChimeraRewardedVideoAdCreatorImpl
04-06 17:51:35.816 7337 7337 I Ads : Updating ad debug logging enablement.
04-06 17:51:35.851 7337 7337 I FIAM.Headless: Setting display event listener
04-06 17:51:35.854 7337 7337 I FIAM.Headless: went foreground
04-06 17:51:35.861 7337 7375 I FIAM.Headless: Forcing fetch from service rather than cache. Test Device: false | App Fresh Install: true
04-06 17:51:35.863 7337 7375 W FIAM.Headless: Recoverable exception while reading cache: /data/user/0/z.zapps/files/fiam_impressions_store_file (No such file or directory)
04-06 17:51:35.866 7337 7375 I FIAM.Headless: Fetching campaigns from service.
04-06 17:51:36.078 2707 2869 I Timeline: Timeline: Activity_windows_visible id: ActivityRecord{5d68e67 u0 z.zapps/.MainActivity t1343} time:138503622 diff:1987 start:cold| batt:56|2 mw:off|1 mem:759588|0|68|13|14 cpu:[1593600, 1593600, 1824000, 1824000]
04-06 17:51:36.081 7337 7337 I TAG : All location settings are satisfied.
04-06 17:51:36.087 2707 2784 D ActivityTrigger: ActivityTrigger activityStopTrigger
04-06 17:51:36.093 702 772 E ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/mmc_host/mmc0/clk_scaling/enable with 0
04-06 17:51:36.093 702 772 E ANDR-PERF-OPTSHANDLER: return value 2
04-06 17:51:37.474 675 1389 D audio_hw_primary: out_standby: exit
04-06 17:51:37.722 3817 3889 I QCNEJ/CndHalConnector: -> SND notifyWifiStatusChanged(RatInfo{type=1, subType=101, state=CONNECTED, v4=IfaceAddrPair{iface=wlan0, addr=192.168.1.4}, v6=IfaceAddrPair{iface=, addr=}, timestamp=2020-04-06 17:51:37.721, isAndroidValidated=true, netHandle=566952119006, slotIdx=0} WifiInfo{freq=TWO_GHz, state=3, ssid=fh_5e7090, bssid=00:67:62:5e:70:90, dns=[192.168.1.1, 0.0.0.0, 0.0.0.0, 0.0.0.0, ]})
04-06 17:51:38.090 686 686 W memtrack#1.0-se: type=1400 audit(0.0:363701): avc: denied { search } for name="proc" dev="debugfs" ino=14021 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
04-06 17:51:38.200 686 686 I chatty : uid=1000(system) memtrack#1.0-se identical 4 lines
04-06 17:51:38.200 686 686 W memtrack#1.0-se: type=1400 audit(0.0:363706): avc: denied { search } for name="proc" dev="debugfs" ino=14021 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0 ppid=1 pcomm="init" pgid=1 pgcomm="init"
04-06 17:51:38.414 5872 5875 E nightwatch-watcher: Failed to read from logcat: Success
Note: I'm building using CodeMagic.io with Stable Channel Version.
any idea?

The error is caused by invoking platform channels before calling runApp.
Since the last stable Flutter version, doing so requires you to call WidgetsFlutterBinding.ensureInitialized(); beforehand, which ensures that Flutter is bound to the platform it's running on before you actually try to communicate to it using platform channels.
Calling this before any other code that makes use of platform channels should fix your issue - I guess you could have it as the very first line of code in your main() function:
WidgetsFlutterBinding.ensureInitialized();
Edit: My answer is only valid for the specific inner exception that the author was getting:
E flutter : Tried calling: defaultBinaryMessenger
E flutter : #0 defaultBinaryMessenger (package:flutter/src/services/binary_messenger.dart:90)
E flutter : #1 MethodChannel.binaryMessenger (package:flutter/src/services/platform_channel.dart:140)
E flutter : #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314)
It is possible you are getting the exact same outer exception, but with a completely different inner exception (root cause), in which case my answer does not apply!

Related

Flutter crash after open apps

I usually build my mobile apps using build service from codemagic.com. During this week i didnt change anything of my code except build number.
Today I got my mobile phone crash after new AppBundle Compile with below error stack from firebase console.
Fatal Exception: java.lang.NoSuchMethodError
No static method createAsync(Landroid/os/Looper;)Landroid/os/Handler; in class Landroidx/core/os/HandlerCompat; or its super classes (declaration of 'androidx.core.os.HandlerCompat' appears in /data/app/exampleapps.exampleappsapps-BpzH5e6LIznAEB3YpE_SGw==/base.apk)
This crash occurs this week (last week was okay), this means There's something update on the 3rd party plugin library or from flutter, but I don't know which plugin causes this crash because I didn't change anything of my code.
Below are my pubspec.yaml specifications:
rxdart_codemod: ^0.1.5
angles: ^1.0.1
app_settings: ^1.0.5
archive: ^2.0.8
flutter_cache_manager: ^1.4.0
cached_network_image: ^2.2.0+1
carousel_slider: ^1.3.0
cron: ^0.2.1
crypto: ^2.0.6
cupertino_icons: ^0.1.2
date_format: ^1.0.5
device_id: ^0.1.3
dio: ^3.0.9
easy_alert: ^0.0.2
localstorage: ^2.0.0
audioplayers: ^0.13.1
path_provider: ^1.1.0
esys_flutter_share: ^1.0.2
flutter_compass: ^0.3.2
flutter_html: ^0.9.6
flutter_local_notifications: ^0.8.2
flutter_offline: ^0.2.4+1
flutter_swiper: ^1.1.6
flutter_xlider: ^2.4.5
font_awesome_flutter: ^8.2.0
geolocator: ^5.0.1
google_maps_flutter: ^0.2.0
google_sign_in: ^4.0.1+1
http: ^0.12.1
libcalendar: ^0.2.0
observable: ^0.22.2
location : ^2.3.0
numberpicker: ^1.0.0
pigment: ^1.0.3
# rxdart: ^0.24.1
rxdart: ">=0.18.1 <0.24.1"
shared_preferences: ^0.5.1+1
shimmer: ^1.0.0
unicode: ^0.1.0
url_launcher: ^5.0.2
validate: ^1.6.0
vibrate: ^0.0.4
# quran purpose
after_layout: ^1.0.7+2
draggable_scrollbar: ^0.0.4
flutter_web_browser: ^0.11.0
flutter_youtube: ^1.1.6
google_api_availability: ^2.0.1
indexed_list_view: ^0.0.5
permission_handler: ^3.1.0
queries: ^0.1.4
rect_getter: ^0.0.1
scroll_to_index: any
sqflite: ^1.1.5
tuple: ^1.0.2
xml2json: ^3.0.3
firebase_messaging: ^5.1.6
firebase_analytics: ^3.0.2
firebase_core: ^0.4.0+3
firebase_auth: ^0.11.1+6
firebase_admob: ^0.9.0+1
firebase_in_app_messaging: ^0.0.1+3
#button_style
superellipse_shape: ^0.1.5
#device info
device_info: ^0.4.0+2
#in-app-purchase
in_app_purchase: ^0.2.0+6
#realtime-error-reporting
sentry: any
#system_info
system_info: ^0.1.1
#highlight for tutorial
highlighter_coachmark: ^0.0.3
#detect sound
volume: ^0.1.0
#admob
admob_flutter: ^0.3.2
#other
bubble_tab_indicator: "^0.1.4"
material_design_icons_flutter: ^3.0.3289
scoped_model: ^1.0.1
flutter_slidable: ^0.4.9
kiwi: ^0.1.0
flutter_markdown: ^0.2.0
#download & save file to storage
flutter_downloader: ^1.2.1
native_ads: ^0.2.0
onesignal_flutter: ^2.0.0
##TEMPORARY DISABLED
#flutter_facebook_login: ^3.0.0
USB debug log:
08-17 11:18:42.282 12595 12600 I zygote64: Increasing code cache capacity to 128KB
08-17 11:18:42.283 12595 12595 I CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful
08-17 11:18:42.285 12595 12595 D AndroidRuntime: Shutting down VM
--------- beginning of crash
08-17 11:18:42.285 12595 12595 E AndroidRuntime: FATAL EXCEPTION: main
08-17 11:18:42.285 12595 12595 E AndroidRuntime: Process: exampleapps.exampleappsapps, PID: 12595
08-17 11:18:42.285 12595 12595 E AndroidRuntime:
java.lang.NoSuchMethodError: No static method createAsync(Landroid/os/Looper;)Landroid/os/Handler; in class Landroidx/core/os/HandlerCompat; or its super classes (declaration of 'androidx.core.os.HandlerCompat' appears in /data/app/exampleapps.exampleappsapps-XKGzJQs6twT4qKb4AGKGTQ==/base.apk)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at androidx.work.impl.DefaultRunnableScheduler.**(DefaultRunnableScheduler.java:40)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at androidx.work.Configuration.(Configuration.java:106)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at androidx.work.Configuration$Builder.build(Configuration.java:434)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at androidx.work.impl.WorkManagerInitializer.onCreate(WorkManagerInitializer.java:40)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:1919)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.content.ContentProvider.attachInfo(ContentProvider.java:1894)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6316)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:5882)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5803)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread.-wrap1(Unknown Source:0)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1666)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.os.Looper.loop(Looper.java:251)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6572)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
08-17 11:18:42.285 12595 12595 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
08-17 11:18:43.407 703 779 E ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/mmc_host/mmc0/clk_scaling/enable with 0
08-17 11:18:43.407 703 779 E ANDR-PERF-OPTSHANDLER: return value 2
08-17 11:18:44.199 2831 4931 I ActivityManager: Killing 10866:com.sonymobile.smartcharger/1000 (adj 906): empty #17
08-17 11:18:44.210 2831 4931 I ActivityManager: Killing 11915:com.discord/u0a315 (adj 906): empty #18
08-17 11:18:44.698 677 677 D audio_hw_primary: out_standby: enter: stream (0xf13d4000) usecase(1: low-latency-playback)
08-17 11:18:44.802 677 677 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
08-17 11:18:44.807 677 677 D hardware_info: hw_info_append_hw_type : device_name = speaker
08-17 11:18:44.808 677 677 D audio_hw_primary: disable_snd_device: snd_device(84: speaker)
08-17 11:18:44.829 677 677 D hardware_info: hw_info_append_hw_type : device_name = vi-feedback
08-17 11:18:44.830 677 677 D audio_hw_primary: disable_snd_device: snd_device(242: vi-feedback)
08-17 11:18:44.830 677 677 D msm8974_platform: platform_split_snd_device: snd_device(242) num devices(0) new_snd_devices(-238434933)
08-17 11:18:44.830 677 677 D audio_hw_primary: disable_audio_route: reset and update mixer path: spkr-vi-record
08-17 11:18:44.867 677 677 D audio_hw_extn: audio_extn_get_anc_enabled: anc_enabled:0
08-17 11:18:44.867 677 677 D audio_hw_extn: audio_extn_get_anc_enabled: anc_enabled:0
08-17 11:18:44.867 677 677 D audio_hw_primary: out_standby: exit
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: Failed to execute task.
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: java.util.concurrent.TimeoutException
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at java.util.concurrent.FutureTask.get(FutureTask.java:206)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at com.crashlytics.android.core.CrashlyticsBackgroundWorker.submitAndWait(CrashlyticsBackgroundWorker.java:41)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at com.crashlytics.android.core.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:321)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at com.crashlytics.android.core.CrashlyticsController$6.onUncaughtException(CrashlyticsController.java:301)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:42)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)
08-17 11:18:46.288 12595 12595 E CrashlyticsCore: at java.lang.Thread.dispatchUncaughtException(Thread.java:1953)
08-17 11:18:46.301 2831 3677 D ActivityManager: New dropbox entry: exampleapps.exampleappsapps, data_app_crash, 3558ffd2-7966-4d8d-8ba6-2ceca752fb06
08-17 11:18:46.310 2831 3677 W ActivityManager: Force finishing activity exampleapps.exampleappsapps/.MainActivity
08-17 11:18:46.313 2831 3677 D ActivityTrigger: ActivityTrigger activityPauseTrigger
08-17 11:18:46.323 2831 3677 W ActivityManager: Force finishing activity com.android.vending/.AssetBrowserActivity
08-17 11:18:46.335 2831 3677 I ActivityManager: Killing 12013:com.sonymobile.coverapp2/1000 (adj 906): empty #17
08-17 11:18:46.338 12111 12111 I Finsky : [2] rjc.onTrimMemory(1): Memory trim requested to level 20
08-17 11:18:46.339 12111 12111 I Finsky : [2] rjc.onTrimMemory(2): Flushing in-memory image cache
08-17 11:18:46.352 2831 2891 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
08-17 11:18:46.352 2831 2891 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
08-17 11:18:46.353 2831 2891 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.sonyericsson.crashmonitor/.receiver.CrashMonitorServiceBroadcastReceiver
08-17 11:18:46.356 2496 2496 I JavaDumper:main: dest_path: /data/system/log/jd_dropboxfiles/data_app_crash#1597637926341.txt
08-17 11:18:46.356 2496 2496 I JavaDumper:main: tot_read: 1699, tot_write: 1699
08-17 11:18:46.356 2496 2496 I JavaDumper:main: Successfully copied dropbox file to /data/system/log/jd_dropboxfiles/data_app_crash#1597637926341.txt
08-17 11:18:46.357 2496 2496 D clmlib : Got activities:0x00000008
08-17 11:18:46.359 12111 12111 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
08-17 11:18:46.362 12111 12248 W ProxyAndroidLoggerBackend: Too many Flogger logs received before configuration. Dropping old logs.
08-17 11:18:46.363 2496 2496 I JavaDumper:JavaDumperThread: addEvent: data_app_crash#1597637926341.txt processName: exampleapps.exampleappsapps
08-17 11:18:46.363 2496 2540 I JavaDumper:JavaDumperThread: Event: data_app_crash#1597637926341.txt TimeStamp: 1597637926
08-17 11:18:46.419 2496 2540 W JavaDumper:JavaDumper: Could not init dump dir: Unknown error -95
08-17 11:18:46.420 2496 2540 E JavaDumper:FW: utils.c(257): mkdir (/data/crashdata) failed. File exists
08-17 11:18:46.423 2831 2893 I ActivityManager: Showing crash dialog for package exampleapps.exampleappsapps u0
any idea?
Could you try updating your firebase packages dependencies?
Flutter app crashes at startup are mainly caused by the any Package dependency issue
causing error can be debug via following command inside project folder into terminal
adb logcat
in your case 08-17 11:18:42.282 12595 12600 I zygote64: Increasing code cache capacity to 128KB 08-17 11:18:42.283 12595 12595 I CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful 08-17 11:18:42.285 12595 12595 D AndroidRuntime: Shutting down VM
it seems crashlytics error
check if you have applied required dependency in android/app/build.gradle
as shown in picture
apply plugin: 'io.fabric'
adb logcat can provide the detail for exact error causing issue
project build.gradle
Whether androidx.core version is specified
Similar to the following
rootProject.allprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.core') {
details.useVersion "1.0.1"
}
}
}
}
If so, delete it
I had a similar issue with codemagic this week, but when I built locally and pushed to Google Play Console/App Store Connect the app runs successfully. Maybe an issue coming from codemagic?

Release app crashes instantly when run. Debug version is fine react native android

I can run my app fine on my phone while debugging but by running npx react-native run-android --variant=release
or making a release apk through android studio it crashes as soon as I open it. For what's in the logcat ithink the react-native-background-task might be to blame. Even though I tried to uninstall it. Maybe it wasn't uninstalled correctly.
adb logcat *:E
p(Looper.java:193)
08-20 23:46:52.037 21966 22003 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
08-20 23:46:52.037 21966 22003 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
08-20 23:47:04.089 22076 22133 E AndroidRuntime: Process: com.perkunos.daily_dharma, PID: 22076
08-20 23:47:04.089 22076 22133 E AndroidRuntime: java.lang.IllegalStateException: You need to call create() at least once to create the singleton
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.evernote.android.job.JobManager.instance(JobManager.java:159)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.jamesisaac.rnbackgroundtask.BackgroundTaskModule.initialize(BackgroundTaskModule.java:52)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.ModuleHolder.doInitialize(ModuleHolder.java:236)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.ModuleHolder.markInitializable(ModuleHolder.java:100)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.NativeModuleRegistry.notifyJSInstanceInitialized(NativeModuleRegistry.java:103)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl$4.run(CatalystInstanceImpl.java:542)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
08-20 23:47:04.089 22076 22133 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
08-20 23:47:05.064 1211 1365 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 23:47:07.842 22161 22194 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
08-20 23:47:07.842 22161 22194 E AndroidRuntime: Process: com.perkunos.daily_dharma, PID: 22161
08-20 23:47:07.842 22161 22194 E AndroidRuntime: java.lang.IllegalStateException: You need to call create() at least once to create the singleton
08-20 23:47:07.842 22161 22194 E AndroidRuntime: at com.evernote.android.job.JobManager.instance(JobManager.java:159)
React Native version:
System:
OS: Linux 4.17 Ubuntu 16.04.6 LTS (Xenial Xerus)
CPU: (4) x64 Intel(R) Core(TM) i5-4210U CPU # 1.70GHz
Memory: 1.68 GB / 7.70 GB
Shell: 4.3.48 - /bin/bash
Binaries:
Node: 12.18.1 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 1.8.0_201 - /usr/bin/javac
Python: 2.7.16 - /home/daniel/anaconda2/bin/python
npmPackages:
#react-native-community/cli: Not Found
react: ~16.11.0 => 16.11.0
react-native: ~0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
It was the react-native-background-task unnistallation that was causing problems, either I did it wrong or something went bad. Installing it again with all the steps did the trick.

OnePlus 3: com.android.contacts/.activities.PeopleActivity not found exception

I am developing an app and using one plus 3 (Android 7.0, Oxygens OS 4.0.3, API 24). PeopleActivity is called if you have more than one contact with same phone number. In my default SMS App, it opens Quick Contact so there is some problem in my app or implementation because of which it opens PeopleActivity. But I am unable to figure out what. Any pointers in right direction appreciated.
Faulty Code
private View.OnClickListener onImageClick(final String phNumber) {
return new View.OnClickListener() {
#Override
public void onClick(View v) {
Intent intent = new Intent(ContactsContract.Intents.SHOW_OR_CREATE_CONTACT,
Uri.fromParts("tel", phNumber, null));
v.getContext().startActivity(intent);
}
};
}
LogCat
04-16 07:40:25.917 1364-29446/? I/ActivityManager: START u0 {act=com.android.contacts.action.SHOW_OR_CREATE_CONTACT dat=tel:xxxxxxxxxxxxx cmp=com.android.contacts/.activities.ShowOrCreateActivity} from uid 10151 pid 20127 on display 0
04-16 07:40:25.918 762-1076/? D/APM_AudioPolicyManager: startOutput() output 13, stream 1, session 73
04-16 07:40:25.918 762-1076/? D/AudioPolicyManagerCustom: getNewOutputDevice() selected device 2
04-16 07:40:25.918 762-1076/? D/APM_AudioPolicyManager: setOutputDevice() device 0002 delayMs 0
04-16 07:40:25.922 762-1211/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
04-16 07:40:25.922 762-1211/? D/audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-16 07:40:25.922 762-1211/? D/audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-16 07:40:25.923 762-1076/? D/APM_AudioPolicyManager: startOutput()--
04-16 07:40:25.923 762-1211/? D/audio_hw_primary: start_output_stream: enter: stream(0xe87fd000)usecase(1: low-latency-playback) devices(0x2)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: select_devices for use case (low-latency-playback)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on non-44.1-support device Configure afe to default Sample Rate(48k)
04-16 07:40:25.924 762-1211/? I/msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
04-16 07:40:25.924 762-1211/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
04-16 07:40:25.924 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
04-16 07:40:25.924 762-1211/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
04-16 07:40:25.924 762-1211/? I/soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0
04-16 07:40:25.924 474-2481/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
04-16 07:40:25.924 762-1211/? D/aud_dev_arbi: acquireOneDevice: device owner for device 2 is 1
04-16 07:40:25.929 762-1211/? I/audio_hw_primary: select_devices Selected apptype: 69937
04-16 07:40:25.930 762-1211/? D/soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 3, with Raise=0
04-16 07:40:25.930 762-1211/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg PLAYBACK app_type 69937, acdb_dev_id 15, sample_rate 48000
04-16 07:40:25.930 762-1211/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg:becf: adm: app_type 69936, acdb_dev_id 15, sample_rate 48000
04-16 07:40:25.930 762-1211/? D/msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(1) new_snd_devices(-403700752)
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11131, sample rate = 48000
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_asm_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_adm_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audtable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audvoltable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 5
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_audstrmtable
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_afe_topology
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 1025e
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_afe_cal
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 15 path = 0
04-16 07:40:25.930 762-1211/? D/ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
04-16 07:40:25.931 762-1211/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback quat_i2s
04-16 07:40:25.931 1364-29446/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
04-16 07:40:25.931 762-1211/? D/audio_hw_primary: select_devices: done
04-16 07:40:25.934 762-1211/? D/msm8974_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map15
04-16 07:40:25.934 762-1211/? D/msm8974_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
04-16 07:40:25.936 20127-23884/in.smslite D/AppTracker: App Event: stop
04-16 07:40:25.965 21309-23885/? D/AppTracker: App Event: start
04-16 07:40:25.976 1364-3044/? E/OnePlusAppBootManager: # startActivityLocked # aInfo = null
04-16 07:40:25.976 1364-3044/? I/ActivityManager: START u0 {act=android.intent.action.SEARCH cmp=com.android.contacts/.activities.PeopleActivity (has extras)} from uid 10125 pid 21309 on display 0
04-16 07:40:25.977 21309-21309/? D/AndroidRuntime: Shutting down VM
--------- beginning of crash
04-16 07:40:25.978 21309-21309/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.contacts, PID: 21309
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.contacts/com.android.contacts.activities.PeopleActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1983)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1696)
at android.app.Activity.startActivityForResult(Activity.java:4290)
at android.app.Activity.startActivityForResult(Activity.java:4249)
at android.app.Activity.startActivity(Activity.java:4588)
at android.app.Activity.startActivity(Activity.java:4548)
at com.android.contacts.activities.ShowOrCreateActivity.onQueryComplete(ShowOrCreateActivity.java:191)
at com.android.contacts.util.NotifyingAsyncQueryHandler.onQueryComplete(NotifyingAsyncQueryHandler.java:61)
at android.content.AsyncQueryHandler.handleMessage(AsyncQueryHandler.java:344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
04-16 07:40:25.978 21309-21309/? D/AppTracker: App Event: crash
04-16 07:40:25.981 1364-1850/? W/ActivityManager: Force finishing activity com.android.contacts/.activities.ShowOrCreateActivity
04-16 07:40:25.982 1364-23887/? V/MDM_DropBox: record:system_app_crash
04-16 07:40:25.984 1364-1850/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
04-16 07:40:25.985 1364-1850/? W/ActivityManager: Force finishing activity in.smslite/.activity.MainActivity
04-16 07:40:25.987 1364-29445/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#a6c8de9 attribute=null, token = android.os.BinderProxy#b795472
04-16 07:40:25.987 1364-1798/? D/OSTracker: OS Event: system_app_crash
04-16 07:40:25.990 762-1211/? D/audio_hw_primary: start_output_stream: exit
04-16 07:40:25.993 1364-1850/? V/WindowManager: just for Front small Window: = Window{9c90a61 u0 net.oneplus.launcher.wallpaper.BlurWallpaper}
04-16 07:40:26.005 21309-21309/? I/Process: Sending signal. PID: 21309 SIG: 9
04-16 07:40:26.016 1364-28534/? V/WindowManager: just for Front small Window: = Window{9c90a61 u0 net.oneplus.launcher.wallpaper.BlurWallpaper}
04-16 07:40:26.018 1364-1777/? W/InputDispatcher: channel 'af18670 com.android.contacts/com.android.contacts.activities.ShowOrCreateActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-16 07:40:26.019 1364-1777/? E/InputDispatcher: channel 'af18670 com.android.contacts/com.android.contacts.activities.ShowOrCreateActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

Android Bluetooth LE Connection issue with other bluetooth devices

First of all, there's no problem with iOS, but the problem occurs when the app is running on Androids.
There's a BLE device that does pair / notification / write / read.
It seems all good until other bluetooth devices are connected and paired or synced.
For example, if the android phone is restarted (or Bluetooth is off and on again), my BLE device works great with the app.
If I open fitbit app and sync a fitbit device, then my device cannot connect anymore. (and not pairing as well)
Not only for fitbit but also for samsung smart watch, the same thing happens.
Anyone recommendation will be appreciated.
Tested with Android 6. Samsung GS6 and Nexus 5.
Update 1:
After synced with fitbit, I get the following messages from my app when connecting to my device.
11-11 09:02:41.811 781 1599 I ActivityManager: Killing 21073:com.android.chrome:privileged_process0/u0a34 (adj 13): empty #17
11-11 09:02:41.822 21010 21010 W cr_ChildProcessConnect: onServiceDisconnected (crash or killed by oom): pid=21073
11-11 09:02:41.838 781 952 D ActivityManager: cleanUpApplicationRecord -- 21073
11-11 09:02:41.838 781 952 W ActivityManager: Scheduling restart of crashed service com.android.chrome/org.chromium.content.app.PrivilegedProcessService0 in 1000ms
11-11 09:02:41.857 781 1226 I ActivityManager: Start proc 23634:com.android.chrome:privileged_process1/u0a34 for service com.android.chrome/org.chromium.content.app.PrivilegedProcessService1
11-11 09:02:41.902 21010 21010 W .android.chrome: type=1400 audit(0.0:21068): avc: denied { ioctl } for path="socket:[1799361]" dev="sockfs" ino=1799361 ioctlcmd=7704 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=unix_stream_socket permissive=0
11-11 09:02:41.902 23644 23644 W Binder_1: type=1400 audit(0.0:21069): avc: denied { ioctl } for path="socket:[1799361]" dev="sockfs" ino=1799361 ioctlcmd=7704 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=unix_stream_socket permissive=0
11-11 09:02:41.902 23644 23644 W Binder_1: type=1400 audit(0.0:21070): avc: denied { ioctl } for path="socket:[1799361]" dev="sockfs" ino=1799361 ioctlcmd=7704 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=unix_stream_socket permissive=0
11-11 09:02:41.905 23634 23634 I cr_ChildProcessService: Creating new ChildProcessService pid=23634
11-11 09:02:41.908 781 2450 I ActivityManager: Killing 21102:com.android.chrome:sandboxed_process0/u0a34i52 (adj 13): empty #17
11-11 09:02:41.912 21010 21010 W .android.chrome: type=1400 audit(0.0:21071): avc: denied { ioctl } for path="socket:[1799361]" dev="sockfs" ino=1799361 ioctlcmd=7704 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=unix_stream_socket permissive=0
11-11 09:02:41.919 23634 23644 I cr_LibraryLoader: Using linker: org.chromium.base.library_loader.ModernLinker
11-11 09:02:41.920 21010 21010 W cr_ChildProcessConnect: onServiceDisconnected (crash or killed by oom): pid=21102
11-11 09:02:41.941 23634 23646 I cr_LibraryLoader: Loading chrome from within /data/app/com.android.chrome-1/base.apk
11-11 09:02:41.965 22521 22521 I System.out: writeCharacteristic(4, 8, AQAAAA==)
11-11 09:02:41.967 781 1226 D ActivityManager: cleanUpApplicationRecord -- 21102
11-11 09:02:41.967 781 1226 W ActivityManager: Scheduling restart of crashed service com.android.chrome/org.chromium.content.app.SandboxedProcessService0 in 1000ms
11-11 09:02:42.016 23634 23646 I cr_LibraryLoader: Time to load native libraries: 95 ms (timestamps 5253-5348)
11-11 09:02:42.016 23634 23646 I cr_LibraryLoader: Expected native library version number "54.0.2840.85", actual native library version number "54.0.2840.85"
11-11 09:02:42.016 23634 23646 I chromium: [INFO:library_loader_hooks.cc(151)] Chromium logging enabled: level = 0, default verbosity = 0
11-11 09:02:42.027 23634 23646 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
11-11 09:02:42.028 23634 23646 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
After this, it does one more reading then disconnected.
If I goto bluetooth app and 'clear data', then it works fine again.

android.content.ActivityNotFoundException: No Activity found to handle Intent

I m a newbie to Android. I am trying to use google location API and when run in the emulator it shows Unfortunately your app stopped working.
I did a adb logcat and here is my stacktrace
10-31 23:43:02.010 2370 2370 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:02.011 2370 2370 D AndroidRuntime: CheckJNI is ON
10-31 23:43:02.026 2370 2370 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:02.030 2370 2370 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:02.044 2370 2370 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:02.044 2370 2370 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:02.045 2370 2370 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:02.062 2370 2370 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
10-31 23:43:02.073 2228 2240 I art : CollectorTransition marksweep + semispace GC freed 125(-7KB) AllocSpace objects, 0(0B) LOS objects, 57% free, 379KB/891KB, paused 5.591ms total 5.591ms
10-31 23:43:02.080 2228 2242 D DefContainer: Copying /data/local/tmp/HighwayMechanic.apk to base.apk
10-31 23:43:02.181 1138 1177 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl931695514.tmp/base.apk pkg=com.highway.highwaymechanic isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl931695514.tmp/oat
10-31 23:43:02.190 2382 2382 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
10-31 23:43:02.190 2382 2382 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,-sse4.1,-sse4.2,-avx,-avx2) for the command line:
10-31 23:43:02.190 2382 2382 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl931695514.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=8 --debuggable
10-31 23:43:02.190 2382 2382 I dex2oat : /system/bin/dex2oat --debuggable
10-31 23:43:08.200 2382 2382 I dex2oat : dex2oat took 6.009s (threads: 1) arena alloc=2MB java alloc=6MB native alloc=32MB free=2MB
10-31 23:43:08.276 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: uninstall pkg
10-31 23:43:08.294 1138 1177 I PackageManager: Package com.highway.highwaymechanic codePath changed from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1; Retaining data and using new
10-31 23:43:08.295 1138 1162 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=-1: replace pkg
10-31 23:43:08.296 1138 1177 W PackageManager: Code path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.296 1138 1177 W PackageManager: Resource path for com.highway.highwaymechanic changing from /data/app/com.highway.highwaymechanic-2 to /data/app/com.highway.highwaymechanic-1
10-31 23:43:08.333 1138 1177 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
10-31 23:43:08.333 1138 1177 I art : Starting a blocking GC Explicit
10-31 23:43:08.353 1138 1177 I art : Explicit concurrent mark sweep GC freed 10787(756KB) AllocSpace objects, 11(220KB) LOS objects, 19% free, 5MB/6MB, paused 517us total 13.651ms
10-31 23:43:08.357 1138 1177 W PackageManager: Couldn't remove dex file for package: at location /data/app/com.highway.highwaymechanic-2/base.apk, retcode=-1
10-31 23:43:08.359 1138 1177 I ActivityManager: Force stopping com.highway.highwaymechanic appid=10053 user=0: pkg removed
10-31 23:43:08.360 2370 2370 I art : System.exit called, status: 0
10-31 23:43:08.360 2370 2370 I AndroidRuntime: VM exiting with result code 0.
10-31 23:43:08.400 1138 1138 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.403 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
10-31 23:43:08.404 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.404 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.414 1925 1925 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.content.ContextWrapper.startService:581 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2725
10-31 23:43:08.418 1138 1641 I BroadcastQueue: Delay finish: com.android.keychain/.KeyChainBroadcastReceiver
10-31 23:43:08.514 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.515 1138 2212 I BroadcastQueue: Resuming delayed broadcast
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
10-31 23:43:08.516 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1138 1255 I InputReader: Reconfiguring input devices. changes=0x00000010
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REPLACED
10-31 23:43:08.602 1566 1566 D CarrierServiceBindHelper: mHandler: 3
10-31 23:43:08.602 1566 1566 D CarrierConfigLoader: mHandler: 9 phoneId: 0
10-31 23:43:08.617 2390 2390 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
10-31 23:43:08.619 2390 2390 D AndroidRuntime: CheckJNI is ON
10-31 23:43:08.635 2390 2390 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.640 2390 2390 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
10-31 23:43:08.654 2390 2390 E memtrack: Couldn't load memtrack module (No such file or directory)
10-31 23:43:08.654 2390 2390 E android.os.Debug: failed to load memtrack module: -2
10-31 23:43:08.655 2390 2390 I Radio-JNI: register_android_hardware_Radio DONE
10-31 23:43:08.667 2390 2390 D AndroidRuntime: Calling main entry com.android.commands.am.Am
10-31 23:43:08.669 1138 2212 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.highway.highwaymechanic/.MainActivity} from uid 0 on display 0
10-31 23:43:08.691 2390 2390 D AndroidRuntime: Shutting down VM
10-31 23:43:08.695 2390 2395 I art : Debugger is no longer active
10-31 23:43:08.695 2390 2401 E art : Thread attaching while runtime is shutting down: Binder_2
10-31 23:43:08.695 2390 2401 I AndroidRuntime: NOTE: attach of thread 'Binder_2' failed
10-31 23:43:08.697 2402 2402 I art : Not late-enabling -Xcheck:jni (already on)
10-31 23:43:08.697 2402 2402 I art : Late-enabling JIT
10-31 23:43:08.702 2402 2402 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
10-31 23:43:08.708 1138 1712 I ActivityManager: Start proc 2402:com.highway.highwaymechanic/u0a53 for activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:08.717 2402 2409 E art : Failed sending reply to debugger: Broken pipe
10-31 23:43:08.717 2402 2409 I art : Debugger is no longer active
10-31 23:43:08.728 2402 2402 W System : ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.747 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.748 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.755 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.764 2402 2402 W GooglePlayServicesUtil: Google Play services is missing.
10-31 23:43:08.797 2402 2402 D gralloc_goldfish: Emulator without GPU emulation detected.
10-31 23:43:08.818 1138 1170 I ActivityManager: Displayed com.highway.highwaymechanic/.MainActivity: +129ms
10-31 23:43:10.932 1138 1429 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending} from uid 10053 on display 0
10-31 23:43:10.933 2402 2402 D AndroidRuntime: Shutting down VM
10-31 23:43:10.933 2402 2402 E AndroidRuntime: FATAL EXCEPTION: main
10-31 23:43:10.933 2402 2402 E AndroidRuntime: Process: com.highway.highwaymechanic, PID: 2402
10-31 23:43:10.933 2402 2402 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.google.android.gms&pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending }
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3917)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3877)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:748)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4200)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4168)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.google.android.gms.dynamic.zza$5.onClick(Unknown Source)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View.performClick(View.java:5198)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21147)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-31 23:43:10.933 2402 2402 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-31 23:43:10.934 1138 1712 W ActivityManager: Force finishing activity com.highway.highwaymechanic/.MainActivity
10-31 23:43:10.935 943 943 D gralloc : Registering a buffer in the process that created it. This may cause memory ordering problems.
10-31 23:43:10.935 943 943 E libEGL : called unimplemented OpenGL ES API
10-31 23:43:10.935 943 943 E SurfaceFlinger: glCheckFramebufferStatusOES error 1711643839
10-31 23:43:10.935 943 943 E SurfaceFlinger: got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
10-31 23:43:11.448 1138 1162 W ActivityManager: Activity pause timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
10-31 23:43:21.478 1138 1162 W ActivityManager: Activity destroy timeout for ActivityRecord{40e8f1c u0 com.highway.highwaymechanic/.MainActivity t11 f}
Here is my Android_manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.highway.highwaymechanic"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="23" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
</application>
</manifest>
Here is my MainActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends FragmentActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
Here is my MapsActivity.java file
package com.highway.highwaymechanic;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
}
#Override
public void onMapReady(GoogleMap map) {
LatLng sydney = new LatLng(-34, 151);
map.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
map.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
}
When run in the emulator it crashes with Unfortunately the app stopped working.
Please help me with it.
Thanks in Advance
I believe this should have been fixed with the latest release of the Google Play services client library. Note that this is a fix in the client library and so you will have to update the library to the latest revision using your SDK manager and recompile your application.
for more details you can check this link
https://code.google.com/p/gmaps-api-issues/issues/detail?id=4862
Do you have an another Activity named Map? As I see in your manifest,
<activity
android:name="com.highway.highwaymechanic.Map"
android:label="#string/title_activity_map" >
</activity>
Likewise, there should be a similar tag for the MapsActivity in your manifest. I think this is the error.
it bugs out much sooner, missing some native assembly for x86 architecture:
W System: ClassLoader referenced unknown path: /data/app/com.highway.highwaymechanic-1/lib/x86
followed by:
W GooglePlayServicesUtil: Google Play services is missing.
To add the missing Google Play (incl. Maps) Services, wrote a how-to once (it's almost the same).
While that FragmentActivity requires an IntentFilter, else it cannot be launched, for example:
<activity
android:name=".MapsActivity"
android:label="#string/title_activity_map">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>

Categories

Resources