My Application Shuts Down with a Silent Error (AndroidRuntime: Shutting down VM) - android

MyApplication terminates silently. The last thing it prints is a tracelog from a function, then the Vm shuts down without any reference to my application.
This is the log snippet
05-17 15:25:28.294 4385 4385 D MyApplication: MyFunction()
05-17 15:25:28.294 4385 4385 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.369 4400 4400 W app_process: type=1400 audit(0.0:76): avc: denied { write } for name="system#framework#boot.art" dev="dm-0" ino=149 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=0
05-17 15:25:28.419 4400 4400 W main : type=1400 audit(0.0:77): avc: denied { write } for name="arm64" dev="dm-0" ino=143 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=dir permissive=0
05-17 15:25:28.371 4400 4400 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
05-17 15:25:28.375 4400 4400 D AndroidRuntime: CheckJNI is OFF
05-17 15:25:28.417 4400 4400 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
05-17 15:25:28.458 4400 4400 I Radio-JNI: register_android_hardware_Radio DONE
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running.
There's no clear indicator except the generic: 05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM

The error was caused by an StackOverflow in native code I wrote.
Stackoverflows shut down silently in Android Native Code, in contrast to segfaults and are therefore hard to find.
Locate the last working piece of code with Tracelogging / Logdebug or use the debugger of Android Studio and you will find the location of the bug.
The indicator for the silent termination is: "Shutting down VM"
05-17 15:25:28.478 4385 4385 D AndroidRuntime: Shutting down VM
05-17 15:25:28.526 4400 4400 D AndroidRuntime: Calling main entry com.android.commands.am.Am
05-17 15:25:28.546 4400 4400 D AndroidRuntime: Shutting down VM
The application continued running, because the code was executed within it's own process (via ProcessBuilder.command())

Related

How to fix React native app stopped working on android

i added firebase to my react native project and it's stopped running on my emulator. I've had this issue with firebase & react-native some years back, don't know what the fix was.
Running adb logcat displays this
04-24 22:13:32.453 371 394 E system_server: Invalid ID 0x00000000.
04-24 22:13:32.465 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.468 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.471 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.476 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.479 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.480 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.482 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.484 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.485 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.486 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.487 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.488 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.493 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.494 4759 4759 E com.mvmarket: Unknown bits set in runtime_flags: 0x8000
04-24 22:13:32.494 371 398 E memtrack: Couldn't load memtrack module
04-24 22:13:32.748 174 4798 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.755 202 271 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-24 22:13:32.818 4759 4807 E AndroidRuntime: FATAL EXCEPTION: create_react_context
04-24 22:13:32.818 4759 4807 E AndroidRuntime: Process: com.mvmarket, PID: 4759
04-24 22:13:32.818 4759 4807 E AndroidRuntime: java.lang.NoSuchMethodError: No static method createEgl14([I)Lorg/webrtc/EglBase14; in class Lorg/webrtc/EglBase; or its super classes (declaration of 'org.webrtc.EglBase' appears in /data/app/com.mvmarket-R-KOl49no3K6lCqfeV5j9A==/base.apk)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBase(EglUtils.java:35)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.EglUtils.getRootEglBaseContext(EglUtils.java:62)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:107)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModule.<init>(WebRTCModule.java:76)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.oney.WebRTCModule.WebRTCModulePackage.createNativeModules(WebRTCModulePackage.java:15)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1476)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1447)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1341)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:138)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1111)
04-24 22:13:32.818 4759 4807 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
04-24 22:13:32.850 371 473 E InputDispatcher: channel '932d8ad com.mvmarket/com.mvmarket.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.857 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.874 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.890 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.906 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.924 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.940 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.956 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.974 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
04-24 22:13:32.990 202 202 E Layer : [Surface(name=AppWindowToken{82ce2ce token=Token{53e3bc9 ActivityRecord{127bfd0 u0 com.mvmarket/.MainActivity t75}}})/#0xafd9b7e - animation-leash#0] No local sync point found
Fixed it
According to the stacktrace, it was an issue with react-native-webrtc
Fixed with this https://stackoverflow.com/a/67592188/11901942
Thanks #Gabe Sechan

Android Permissions not work

I install Android Permissions plugin from this page https://ionicframework.com/docs/native/android-permissions/ . But when i add to constructor constructor(private androidPermissions: AndroidPermissions) { } my app doesnt start and in adv logcat i had an error Ionic Native: deviceready event fired after 826 ms When i remove private androidPermissions: AndroidPermissions application work great, but i realy need to get this permission!
Full logcat after app was starting. Iam newbee in ionic and js actually/
07-31 13:55:06.825 6025 6025 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
07-31 13:55:06.827 6025 6025 D AndroidRuntime: CheckJNI is ON
07-31 13:55:06.840 6025 6025 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-31 13:55:06.853 6025 6025 E memtrack: Couldn't load memtrack module (No such file or directory)
07-31 13:55:06.876 3935 3946 D DefContainer: Copying /data/local/tmp/android-debug.apk to base.apk
07-31 13:55:07.064 1961 2023 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl487172328.tmp/base.apk pkg=io.ionic.starter isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl487172328.tmp/oat
07-31 13:55:07.072 6034 6034 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
07-31 13:55:07.072 6034 6034 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:
07-31 13:55:07.072 6034 6034 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl487172328.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
07-31 13:55:07.072 6034 6034 I dex2oat : /system/bin/dex2oat --debuggable
07-31 13:55:07.147 6034 6034 I dex2oat : dex2oat took 75.337ms (threads: 2) arena alloc=516KB java alloc=258KB native alloc=2MB free=1840KB
07-31 13:55:07.151 1961 1995 I ActivityManager: Force stopping io.ionic.starter appid=10053 user=-1: uninstall pkg
07-31 13:55:07.171 1961 2023 I PackageManager: Package io.ionic.starter codePath changed from /data/app/io.ionic.starter-2 to /data/app/io.ionic.starter-1; Retaining data and using new
07-31 13:55:07.171 1961 2023 W PackageManager: Code path for io.ionic.starter changing from /data/app/io.ionic.starter-2 to /data/app/io.ionic.starter-1
07-31 13:55:07.171 1961 2023 W PackageManager: Resource path for io.ionic.starter changing from /data/app/io.ionic.starter-2 to /data/app/io.ionic.starter-1
07-31 13:55:07.171 1961 1995 I ActivityManager: Force stopping io.ionic.starter appid=10053 user=-1: replace pkg
07-31 13:55:07.209 1961 2023 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
07-31 13:55:07.209 1961 2023 I art : Starting a blocking GC Explicit
07-31 13:55:07.229 1961 2023 I art : Explicit concurrent mark sweep GC freed 12565(766KB) AllocSpace objects, 4(80KB) LOS objects, 33% free, 7MB/10MB, paused 941us total 20.001ms
07-31 13:55:07.234 1961 2023 W PackageManager: Couldn't remove dex file for package: at location /data/app/io.ionic.starter-2/base.apk, retcode=-1
07-31 13:55:07.234 1961 2023 I ActivityManager: Force stopping io.ionic.starter appid=10053 user=0: pkg removed
07-31 13:55:07.235 6025 6025 I art : System.exit called, status: 0
07-31 13:55:07.235 6025 6025 I AndroidRuntime: VM exiting with result code 0.
07-31 13:55:07.281 3306 3314 W SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/metrics.db.16' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
07-31 13:55:07.282 3306 3314 W SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db.18' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
07-31 13:55:07.283 3306 3314 W SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
07-31 13:55:07.296 1961 1961 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
07-31 13:55:07.297 1961 2254 I InputReader: Reconfiguring input devices. changes=0x00000010
07-31 13:55:07.302 2697 2697 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
07-31 13:55:07.302 2697 2697 D CarrierServiceBindHelper: mHandler: 3
07-31 13:55:07.306 2677 3168 E NetworkScheduler.SR: Invalid parameter app
07-31 13:55:07.306 2677 3168 E NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
07-31 13:55:07.321 3469 3469 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
07-31 13:55:07.356 1961 2254 I InputReader: Reconfiguring input devices. changes=0x00000010
07-31 13:55:07.378 3306 6066 D Wear_Controller: Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=io.ionic.starter
07-31 13:55:07.414 2697 2697 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
07-31 13:55:07.414 2697 2697 D CarrierServiceBindHelper: mHandler: 3
07-31 13:55:07.419 3306 6062 D Wear_Controller: Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=io.ionic.starter
07-31 13:55:07.474 1961 2254 I InputReader: Reconfiguring input devices. changes=0x00000010
07-31 13:55:07.475 2697 2697 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REPLACED
07-31 13:55:07.475 2697 2697 D CarrierServiceBindHelper: mHandler: 3
07-31 13:55:07.475 2697 2697 D CarrierConfigLoader: mHandler: 9 phoneId: 0
07-31 13:55:07.476 2809 6069 I UpdateIcingCorporaServi: Updating corpora: APPS=io.ionic.starter, CONTACTS=MAYBE
07-31 13:55:07.477 6041 6041 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
07-31 13:55:07.478 6041 6041 D AndroidRuntime: CheckJNI is ON
07-31 13:55:07.491 6041 6041 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-31 13:55:07.492 3306 6057 I FontsPackageChangeOp: Package io.ionic.starter has no metadata
07-31 13:55:07.513 6041 6041 E memtrack: Couldn't load memtrack module (No such file or directory)
07-31 13:55:07.513 6041 6041 E android.os.Debug: failed to load memtrack module: -2
07-31 13:55:07.518 6041 6041 I Radio-JNI: register_android_hardware_Radio DONE
07-31 13:55:07.527 6041 6041 D AndroidRuntime: Calling main entry com.android.commands.input.Input
07-31 13:55:07.527 6041 6041 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MENU, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=3105719, downTime=3105719, deviceId=-1, source=0x101 }
07-31 13:55:07.531 2677 3168 E NetworkScheduler.SR: Invalid parameter app
07-31 13:55:07.531 2677 3168 E NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
07-31 13:55:07.532 6041 6041 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MENU, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=3105719, downTime=3105719, deviceId=-1, source=0x101 }
07-31 13:55:07.533 6041 6041 D AndroidRuntime: Shutting down VM
07-31 13:55:07.540 1961 2407 I AccountManagerService: getTypesVisibleToCaller: isPermitted? true
07-31 13:55:08.047 3306 3848 W art : Long monitor contention event with owner method=void suz.d(svc) from :com.google.android.gms:4 waiters=0 for 342ms
07-31 13:55:08.065 3306 5133 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
07-31 13:55:08.215 3306 5133 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload true
07-31 13:55:08.220 2809 6069 I UpdateIcingCorporaServi: UpdateCorporaTask done [took 744 ms] updated apps [took 744 ms]
07-31 13:55:08.268 6080 6080 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
07-31 13:55:08.271 6080 6080 D AndroidRuntime: CheckJNI is ON
07-31 13:55:08.281 3306 5133 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
07-31 13:55:08.285 3306 5133 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
07-31 13:55:08.288 3306 5133 I Icing : Usage reports 0 indexed 0 rejected 0 imm upload false
07-31 13:55:08.293 6080 6080 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
07-31 13:55:08.324 6080 6080 E memtrack: Couldn't load memtrack module (No such file or directory)
07-31 13:55:08.324 6080 6080 E android.os.Debug: failed to load memtrack module: -2
07-31 13:55:08.325 6080 6080 I Radio-JNI: register_android_hardware_Radio DONE
07-31 13:55:08.333 6080 6080 D AndroidRuntime: Calling main entry com.android.commands.am.Am
07-31 13:55:08.336 1961 2725 I ActivityManager: START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=io.ionic.starter/.MainActivity} from uid 0 on display 0
07-31 13:55:08.364 6090 6090 I art : Not late-enabling -Xcheck:jni (already on)
07-31 13:55:08.367 1961 3766 I ActivityManager: Start proc 6090:io.ionic.starter/u0a53 for activity io.ionic.starter/.MainActivity
07-31 13:55:08.482 6090 6090 I CordovaLog: Changing log level to DEBUG(3)
07-31 13:55:08.482 6090 6090 I CordovaActivity: Apache Cordova native platform version 6.2.3 is starting
07-31 13:55:08.482 6090 6090 D CordovaActivity: CordovaActivity.onCreate()
07-31 13:55:08.484 6090 6090 I WebViewFactory: Loading com.android.webview version 44.0.2403.119 (code 246011910)
07-31 13:55:08.500 6090 6090 W System : ClassLoader referenced unknown path: /system/app/webview/lib/x86
07-31 13:55:08.503 6090 6090 I LibraryLoader: Time to load native libraries: 0 ms (timestamps 6695-6695)
07-31 13:55:08.503 6090 6090 I LibraryLoader: Expected native library version number "",actual native library version number ""
07-31 13:55:08.535 2712 2901 E Surface : getSlotFromBufferLocked: unknown buffer: 0x9f5555e0
07-31 13:55:08.570 6090 6090 V WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {3103e26}
07-31 13:55:08.571 6090 6090 I LibraryLoader: Expected native library version number "",actual native library version number ""
07-31 13:55:08.571 6090 6090 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
07-31 13:55:08.573 6090 6090 I BrowserStartupController: Initializing chromium process, singleProcess=true
07-31 13:55:08.573 6090 6090 W art : Attempt to remove non-JNI local reference, dumping thread
07-31 13:55:08.574 6090 6090 E SysUtils: ApplicationContext is null in ApplicationStatus
07-31 13:55:08.581 6090 6090 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
07-31 13:55:08.583 6090 6090 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
07-31 13:55:08.583 6090 6090 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
07-31 13:55:08.569 6090 6090 W o.ionic.starter: type=1400 audit(0.0:48): avc: denied { search } for name="graphics" dev="tmpfs" ino=1274 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:graphics_device:s0 tclass=dir permissive=0
07-31 13:55:08.607 6090 6116 W AudioManagerAndroid: Requires BLUETOOTH permission
07-31 13:55:08.608 6090 6090 E DataReductionProxySettingListener: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
07-31 13:55:08.617 6090 6090 W art : Attempt to remove non-JNI local reference, dumping thread
07-31 13:55:08.619 6090 6090 W AwContents: onDetachedFromWindow called when already detached. Ignoring
07-31 13:55:08.631 6090 6090 D SystemWebViewEngine: CordovaWebView is running on device made by: unknown
07-31 13:55:08.638 6090 6090 W art : Attempt to remove non-JNI local reference, dumping thread
07-31 13:55:08.638 6090 6090 W art : Attempt to remove non-JNI local reference, dumping thread
07-31 13:55:08.638 6090 6090 D PluginManager: init()
07-31 13:55:08.643 1226 1285 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
07-31 13:55:08.643 6090 6123 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
07-31 13:55:08.647 6090 6090 D gralloc_ranchu: Emulator without host-side GPU emulation detected. Loading gralloc.default.so from /vendor/lib/hw/gralloc.default.so...
07-31 13:55:08.647 6090 6090 D gralloc_ranchu: gralloc.default.so not found in /vendor. Trying /system/lib/hw/gralloc.default.so...
07-31 13:55:08.710 6090 6090 D CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)
07-31 13:55:08.714 1225 1225 E SELinux : avc: denied { find } for service=batteryproperties scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:healthd_service:s0 tclass=service_manager
07-31 13:55:08.724 6090 6090 D CordovaActivity: Started the activity.
07-31 13:55:08.724 6090 6090 D CordovaActivity: Resumed the activity.
07-31 13:55:08.728 6090 6114 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
07-31 13:55:08.764 6090 6123 I OpenGLRenderer: Initialized EGL, version 1.4
07-31 13:55:09.103 3306 3782 I Icing : Indexing 01A01936D079744CE3B2C265076C88005C5472E3 from com.google.android.gms
07-31 13:55:09.127 1961 2796 I WindowManager: Switching to real app window: Window{483cb63 u0 io.ionic.starter/io.ionic.starter.MainActivity}
07-31 13:55:09.191 3306 3782 I Icing : Indexing done 01A01936D079744CE3B2C265076C88005C5472E3
07-31 13:55:09.328 3306 3782 I Icing : Indexing F301375E5CABF8A3BEBE3ECD1D9ECB5EAEE906C4 from com.google.android.googlequicksearchbox
07-31 13:55:09.346 3306 3782 I Icing : Indexing 01A01936D079744CE3B2C265076C88005C5472E3 from com.google.android.gms
07-31 13:55:09.347 3306 3782 I Icing : Indexing done 01A01936D079744CE3B2C265076C88005C5472E3
07-31 13:55:09.353 3306 3782 I Icing : Indexing done F301375E5CABF8A3BEBE3ECD1D9ECB5EAEE906C4
07-31 13:55:09.597 1961 2010 I ActivityManager: Displayed io.ionic.starter/.MainActivity: +1s244ms
07-31 13:55:09.599 6080 6080 D AndroidRuntime: Shutting down VM
07-31 13:55:09.642 6090 6090 D CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)
07-31 13:55:09.749 6090 6090 W BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6090
07-31 13:55:10.020 6090 6090 D JsMessageQueue: Set native->JS mode to EvalBridgeMode
07-31 13:55:11.453 6090 6123 E Surface : getSlotFromBufferLocked: unknown buffer: 0x9eb7e200
07-31 13:55:11.490 1961 3689 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#9c242b7 attribute=null, token = android.os.BinderProxy#39cbf06
07-31 13:55:11.797 6090 6123 E Surface : getSlotFromBufferLocked: unknown buffer: 0x9b3fdd80
07-31 13:55:13.627 6090 6090 D SystemWebChromeClient: file:///android_asset/www/build/vendor.js: Line 3405 : Angular is running in the development mode. Call enableProdMode() to enable the production mode.
07-31 13:55:13.627 6090 6090 I chromium: [INFO:CONSOLE(3405)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: file:///android_asset/www/build/vendor.js (3405)
07-31 13:55:13.635 6090 6090 D SystemWebChromeClient: file:///android_asset/www/build/vendor.js: Line 1443 : ERROR
07-31 13:55:13.635 6090 6090 I chromium: [INFO:CONSOLE(1443)] "ERROR", source: file:///android_asset/www/build/vendor.js (1443)
07-31 13:55:13.647 6090 6090 D SystemWebChromeClient: file:///android_asset/www/build/vendor.js: Line 112056 : Ionic Native: deviceready event fired after 1342 ms
07-31 13:55:13.647 6090 6090 I chromium: [INFO:CONSOLE(112056)] "Ionic Native: deviceready event fired after 1342 ms", source: file:///android_asset/www/build/vendor.js (112056)
07-31 13:55:13.650 6090 6134 I App : WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!
07-31 13:55:13.681 6090 6090 D CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)

run-android stopped working and always fail

All of a sudden, my react native project stopped working in the android emulator.
every time I run
react-native run-android
i get the message 'Unfortunately, APPNAME has stopped.
My setup files are here.
The app is launched using
/Users/myusername/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -n com.selfy/.MainActivity)...
I'm not sure what did happen before the last time it was working just fine. On the iOS simulator, the app runs as usual.
Just to get me started with the debug, what's the usual procedure to debug, when the app doesn't even start on the device? Is there a way to save the error stuck somewhere?
LogCat logs here:
01-04 10:27:34.401 2520 2520 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.402 2520 2520 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.403 2520 2520 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:34.423 2520 2520 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:34.427 2520 2520 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:34.440 2520 2520 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:34.440 2520 2520 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:34.441 2520 2520 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:34.448 2520 2520 D AndroidRuntime: Calling main entry com.android.commands.am.Am
01-04 10:27:34.456 2520 2520 D AndroidRuntime: Shutting down VM
01-04 10:27:34.676 2530 2530 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.678 2530 2530 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.678 2530 2530 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:34.701 2530 2530 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:34.706 2530 2530 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:34.720 2530 2530 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:34.720 2530 2530 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:34.721 2530 2530 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:34.727 2530 2530 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:34.742 2530 2530 I art : System.exit called, status: 0
01-04 10:27:34.742 2530 2530 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:34.989 2541 2541 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:34.990 2541 2541 D AndroidRuntime: CheckJNI is ON
01-04 10:27:34.990 2541 2541 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:35.012 2541 2541 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:35.015 2541 2541 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:35.028 2541 2541 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:35.028 2541 2541 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:35.028 2541 2541 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:35.034 2541 2541 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:35.043 1234 1234 I : free_cache(9402219) avail 469483520
01-04 10:27:36.164 2541 2541 I art : System.exit called, status: 0
01-04 10:27:36.164 2541 2541 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:36.376 2553 2553 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:36.378 2553 2553 D AndroidRuntime: CheckJNI is ON
01-04 10:27:36.378 2553 2553 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:36.401 2553 2553 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:36.406 2553 2553 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:36.420 2553 2553 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:36.420 2553 2553 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:36.420 2553 2553 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:36.431 2553 2553 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
01-04 10:27:36.723 1480 1492 W art : Long monitor contention with owner PackageInstaller (1507) at int android.content.res.AssetManager.getStringBlockCount!()(AssetManager.java:-2) waiters=0 in android.content.pm.PackageInstaller$SessionInfo com.android.server.pm.PackageInstallerSession.generateInfo() for 282ms
01-04 10:27:36.752 1480 1506 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl1425441869.tmp/base.apk pkg=com.selfy isa=x86 vmSafeMode=false debuggable=true target-filter=interpret-only oatDir = /data/app/vmdl1425441869.tmp/oat sharedLibraries=null
01-04 10:27:36.764 2564 2564 W dex2oat : Unexpected CPU variant for X86 using defaults: x86
01-04 10:27:36.765 2564 2564 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2,-lock_add,-popcnt) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,sse4.1,sse4.2,-avx,-avx2,-lock_add,popcnt) for the command line:
01-04 10:27:36.765 2564 2564 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl1425441869.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=interpret-only --swap-fd=9 --debuggable
01-04 10:27:36.765 2564 2564 I dex2oat : /system/bin/dex2oat --compiler-filter=interpret-only --debuggable
01-04 10:27:36.765 2564 2564 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:36.929 2564 2566 W dex2oat : Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
01-04 10:27:36.978 2564 2566 W dex2oat : Before Android 4.1, method boolean com.facebook.share.widget.ShareButtonBase.canShare() would have incorrectly overridden the package-private method in android.widget.TextView
01-04 10:27:36.983 2564 2564 W dex2oat : Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
01-04 10:27:38.944 2564 2564 I dex2oat : dex2oat took 2.179s (threads: 2) arena alloc=280KB (287040B) java alloc=5MB (6023456B) native alloc=8MB (8991224B) free=2MB (3067400B)
01-04 10:27:38.949 1480 1494 I ActivityManager: Force stopping com.selfy appid=10054 user=-1: installPackageLI
01-04 10:27:38.962 1480 1506 I PackageManager: Package com.selfy codePath changed from /data/app/com.selfy-1 to /data/app/com.selfy-2; Retaining data and using new
01-04 10:27:38.962 1480 1506 W PackageManager: Code path for com.selfy changing from /data/app/com.selfy-1 to /data/app/com.selfy-2
01-04 10:27:38.962 1480 1506 W PackageManager: Resource path for com.selfy changing from /data/app/com.selfy-1 to /data/app/com.selfy-2
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.google.android.c2dm.permission.RECEIVE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sec.android.provider.badge.permission.READ in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sec.android.provider.badge.permission.WRITE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.htc.launcher.permission.READ_SETTINGS in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.htc.launcher.permission.UPDATE_SHORTCUT in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sonyericsson.home.permission.BROADCAST_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.sonymobile.home.permission.PROVIDER_INSERT_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.anddoes.launcher.permission.UPDATE_COUNT in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.majeur.launcher.permission.UPDATE_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.CHANGE_BADGE in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.READ_SETTINGS in package com.selfy
01-04 10:27:38.980 1480 1506 W PackageManager: Unknown permission com.huawei.android.launcher.permission.WRITE_SETTINGS in package com.selfy
01-04 10:27:38.996 1480 1506 I art : Starting a blocking GC Explicit
01-04 10:27:39.014 1480 1506 I art : Explicit concurrent mark sweep GC freed 51004(2MB) AllocSpace objects, 17(676KB) LOS objects, 23% free, 12MB/16MB, paused 641us total 17.238ms
01-04 10:27:39.018 1234 1234 E : Couldn't opendir /data/app/vmdl1425441869.tmp: No such file or directory
01-04 10:27:39.022 2553 2553 I art : System.exit called, status: 0
01-04 10:27:39.022 2553 2553 I AndroidRuntime: VM exiting with result code 0.
01-04 10:27:39.022 1480 1506 I ActivityManager: Force stopping com.selfy appid=10054 user=0: pkg removed
01-04 10:27:39.042 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.057 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.061 1480 1521 I InputReader: Reconfiguring input devices. changes=0x00000010
01-04 10:27:39.061 1897 1897 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1385 android.content.ContextWrapper.startService:613 android.content.ContextWrapper.startService:613 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:3011
01-04 10:27:39.133 1480 1493 W VoiceInteractionManagerService: no available voice recognition services found for user 0
01-04 10:27:39.133 1480 1493 W LocationProviderProxy-network: Odd, no component found for service com.android.location.service.v3.NetworkLocationProvider
01-04 10:27:39.139 1480 1493 W GeocoderProxy: Odd, no component found for service com.android.location.service.GeocodeProvider
01-04 10:27:39.139 1480 1493 W GeofenceProxy: Odd, no component found for service com.android.location.service.GeofenceProvider
01-04 10:27:39.139 1480 1493 W ActivityRecognitionProxy: Odd, no component found for service com.android.location.service.ActivityRecognitionProvider
01-04 10:27:39.143 1695 1695 D CarrierSvcBindHelper: No carrier app for: 0
01-04 10:27:39.146 1695 1695 D CarrierSvcBindHelper: No carrier app for: 0
01-04 10:27:39.147 1695 1695 D CarrierConfigLoader: mHandler: 9 phoneId: 0
01-04 10:27:39.702 2570 2570 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
01-04 10:27:39.703 2570 2570 D AndroidRuntime: CheckJNI is ON
01-04 10:27:39.703 2570 2570 E cutils-trace: Error opening trace file: Permission denied (13)
01-04 10:27:39.724 2570 2570 W art : Unexpected CPU variant for X86 using defaults: x86_64
01-04 10:27:39.728 2570 2570 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
01-04 10:27:39.744 2570 2570 E memtrack: Couldn't load memtrack module (No such file or directory)
01-04 10:27:39.744 2570 2570 E android.os.Debug: failed to load memtrack module: -2
01-04 10:27:39.748 2570 2570 I Radio-JNI: register_android_hardware_Radio DONE
01-04 10:27:39.759 2570 2570 D AndroidRuntime: Calling main entry com.android.commands.am.Am
01-04 10:27:39.765 1480 1591 I ActivityManager: START u0 {flg=0x10000000 cmp=com.selfy/.MainActivity} from uid 2000 on display 0
01-04 10:27:39.774 2570 2570 D AndroidRuntime: Shutting down VM
01-04 10:27:39.787 1480 1939 I ActivityManager: Start proc 2580:com.selfy/u0a54 for activity com.selfy/.MainActivity
01-04 10:27:39.794 2580 2580 I art : Not late-enabling -Xcheck:jni (already on)
01-04 10:27:39.795 2580 2580 W art : Unexpected CPU variant for X86 using defaults: x86
01-04 10:27:39.818 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x933 imply creation of host color buffer
01-04 10:27:39.842 1480 1501 D : HostConnection::get() New Host Connection established 0x7ffed95948e0, tid 1501
01-04 10:27:39.881 2580 2595 D NetworkSecurityConfig: No Network Security Config specified, using platform default
01-04 10:27:39.889 2580 2580 V fb-UnpackingSoSource: locked dso store /data/user/0/com.selfy/lib-main
01-04 10:27:39.889 2580 2580 V fb-UnpackingSoSource: deps mismatch on deps store: regenerating
01-04 10:27:39.890 2580 2580 V fb-UnpackingSoSource: so store dirty: regenerating
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libfb.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libfolly_json.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libglog.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libglog_init.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libgnustl_shared.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libicu_common.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libimagepipeline.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libjsc.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejni.so: deferring to libdir
01-04 10:27:39.923 2580 2580 D ApkSoSource: not allowing consideration of lib/x86/libreactnativejnifb.so: deferring to libdir
01-04 10:27:39.924 2580 2580 V fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource
01-04 10:27:39.924 2580 2580 V fb-UnpackingSoSource: starting syncer worker
01-04 10:27:39.939 2580 2580 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.selfy/lib-main (from syncer thread)
01-04 10:27:39.940 2580 2580 V fb-UnpackingSoSource: not releasing dso store lock for /data/user/0/com.selfy/lib-main (syncer thread started)
01-04 10:27:40.009 2580 2580 W unknown:React: Packager connection already open, nooping.
01-04 10:27:40.023 1220 2506 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
01-04 10:27:41.021 2580 2610 D : HostConnection::get() New Host Connection established 0xe36cc700, tid 2610
01-04 10:27:41.021 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.022 1480 1501 I Choreographer: Skipped 71 frames! The application may be doing too much work on its main thread.
01-04 10:27:41.038 2580 2610 I OpenGLRenderer: Initialized EGL, version 1.4
01-04 10:27:41.038 2580 2610 D OpenGLRenderer: Swap behavior 1
01-04 10:27:41.046 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.067 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.095 2580 2610 W gralloc_ranchu: Gralloc pipe failed
01-04 10:27:41.244 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.249 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.257 1480 1501 I ActivityManager: Displayed com.selfy/.MainActivity: +1s483ms
01-04 10:27:41.262 1220 1252 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.394 2580 2580 I art : Thread[1,tid=2580,Native,Thread*=0xf008b400,peer=0x750cd6f0,"main"] recursive attempt to load library "/data/app/com.selfy-2/lib/x86/libfb.so"
01-04 10:27:41.404 1480 1938 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#f85b331 attribute=null, token = android.os.BinderProxy#1a05b66
01-04 10:27:41.410 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTRenderableViewManager
01-04 10:27:41.410 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
01-04 10:27:41.411 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
01-04 10:27:41.412 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
01-04 10:27:41.413 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
01-04 10:27:41.414 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
01-04 10:27:41.420 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
01-04 10:27:41.421 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
01-04 10:27:41.421 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
01-04 10:27:41.422 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
com.facebook.react.views.slider.ReactSliderManager
01-04 10:27:41.437 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
01-04 10:27:41.437 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
01-04 10:27:41.438 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
01-04 10:27:41.441 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
01-04 10:27:41.442 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
01-04 10:27:41.442 2580 2596 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
01-04 10:27:41.448 1480 1501 I WindowManager: Destroying surface Surface(name=Starting com.selfy) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:429 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:232 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:180 com.android.server.wm.WindowManagerService$H.handleMessage:8079 android.os.Handler.dispatchMessage:102
01-04 10:27:41.583 1480 1501 W AppOps : Finishing op nesting under-run: uid 10054 pkg com.selfy code 24 time=0 duration=0 nesting=0
01-04 10:27:41.792 2580 2615 I ReactNativeJS: NOTIFICATION CLICKED
01-04 10:27:41.803 1480 1747 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.AppWindowToken.notifyAppStopped:389 com.android.server.wm.WindowManagerService.notifyAppStopped:4456 com.android.server.am.ActivityStack.activityStoppedLocked:1252 com.android.server.am.ActivityManagerService.activityStopped:6873
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/INIT' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/PROBE_UNKNOWN_ACTION_h.k.0.z.2' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/INIT' }
01-04 10:27:41.848 2580 2615 I ReactNativeJS: { type: '##redux/PROBE_UNKNOWN_ACTION_6.p.6.i.j.h' }
01-04 10:27:41.851 2580 2615 I ReactNativeJS: { type: '##INIT' }
01-04 10:27:41.852 2580 2615 I ReactNativeJS: { type: '##INIT' }
01-04 10:27:41.863 2580 2621 E AndroidRuntime: FATAL EXCEPTION: IntentService[RNPushNotification]
01-04 10:27:41.863 2580 2621 E AndroidRuntime: Process: com.selfy, PID: 2580
01-04 10:27:41.863 2580 2621 E AndroidRuntime: java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.selfy-2/base.apk)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.zzdo(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.zzd.<init>(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService.onHandleIntent(RNPushNotificationRegistrationService.java:22)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
01-04 10:27:41.863 2580 2621 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
01-04 10:27:41.863 1480 1591 W ActivityManager: Force finishing activity com.selfy/.MainActivity
01-04 10:27:41.869 2580 2580 D AndroidRuntime: Shutting down VM
01-04 10:27:41.869 2580 2580 I Process : Sending signal. PID: 2580 SIG: 9
01-04 10:27:41.905 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.907 1480 1526 I OpenGLRenderer: Initialized EGL, version 1.4
01-04 10:27:41.907 1480 1526 D OpenGLRenderer: Swap behavior 1
01-04 10:27:41.913 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.917 1240 1472 E FrameworkListener: read() failed (Connection reset by peer)
01-04 10:27:41.917 1480 1520 W InputDispatcher: channel '4042ea7 com.selfy/com.selfy.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
01-04 10:27:41.918 1480 1520 E InputDispatcher: channel '4042ea7 com.selfy/com.selfy.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-04 10:27:41.921 1480 1729 D GraphicsStats: Buffer count: 3
01-04 10:27:41.921 1480 1729 I WindowManager: WIN DEATH: Window{4042ea7 u0 com.selfy/com.selfy.MainActivity}
01-04 10:27:41.921 1480 1729 W InputDispatcher: Attempted to unregister already unregistered input channel '4042ea7 com.selfy/com.selfy.MainActivity (server)'
01-04 10:27:41.921 1480 1729 I WindowManager: Destroying surface Surface(name=com.selfy/com.selfy.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowState$DeathRecipient.binderDied:1780 android.os.BinderProxy.sendDeathNotice:688 <bottom of call stack>
01-04 10:27:41.922 1480 1492 I ActivityManager: Process com.selfy (pid 2580) has died
01-04 10:27:41.922 1480 1492 W ActivityManager: Scheduling restart of crashed service com.selfy/com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService in 1000ms
01-04 10:27:41.923 1220 1536 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:41.978 1480 1591 W ActivityManager: Ignoring remove of inactive process: ProcessRecord{4ef2cd9 0:com.selfy/u0a54}
01-04 10:27:42.042 1220 1529 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.055 1220 2506 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.071 1220 2506 D gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer
01-04 10:27:42.165 1480 1495 I WindowManager: Destroying surface Surface(name=Application Error: com.selfy) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193
01-04 10:27:42.166 1480 1495 W AppOps : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
01-04 10:27:42.615 1911 1997 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
01-04 10:27:43.786 1480 1552 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
Thanks

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