Unfortunately, MyApp has stopped - Error on exit of the App


#1

Hi,

I have tried to build a demo app and run it on device. All functionalities run fine but after the app exits, I see the above message.
Environment Info:

E:\KHYATI-APP\EXAMPLES\popoverHelp> ionic info
cli packages: (C:\Users\Akash\AppData\Roaming\npm\node_modules)
    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0
global packages:
    cordova (Cordova CLI) : 7.0.1
local packages:
    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.7.1
System:
    Node : v6.11.2
    npm  : 3.10.10
    OS   : Windows 10
Misc:
    backend : legacy

PS E:\KHYATI-APP\EXAMPLES\popoverHelp>

Other Info: I don’t have a Android Studio but have SDK manager and it is updated

I have tried running the app with command as: ionic cordova run android
All runs fine, but as soon as i exit the app, I see the captioned error

I have tried to gather the ADB logs as well. I guess i have the snippet of the log where it goes wrong.
I am not an Android/Ionic expert hence stressing it is my guess that this is where is went wrong

I see there are 2 errors viz.:
E/GooglePlayServicesUtil( 1106): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

and

E/IMGSRV (27745): kickresource.c:1130: Debug assertion failed!

So how do i include the Play Service and how do I know which part of my application is really using it?

Finally, I have uploaded the code here for which I am able to reproduce the error

Is this a problem with my environment?(my machine to be specific)
Can anyone please try and update their findings of the same

Thanks & Regards
Dhaval