8 Replies Latest reply on Mar 11, 2016 12:20 AM by jcesarmobile_

    unfortunately app has stopped

    tuvboy

      Looked about, tried a few things, cant re build app that is currently on playstore. Used to work, not now!

      Greatly appreciate some advice, cheers.

       

      config.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <widget xmlns     = "http://www.w3.org/ns/widgets"

              xmlns:gap = "http://phonegap.com/ns/1.0"

              id        = "Bla"

        versionCode= "06"

              version   = "3.0.2">

          <name>Bla</name>

       

       

          <description>

            Bla

          </description>

       

       

          <author href="http://Bla.com" email="support@bla.com">

              Dev Team

          </author>

       

       

          <feature name="http://api.phonegap.com/1.0/device" /> 

          <preference name="phonegap-version" value="cli-5.2.0" />

          <preference name="orientation"                value="landscape" />

          <preference name="target-device"              value="universal" />

          <preference name="fullscreen"                 value="true" />

       

          <gap:plugin name="cordova-plugin-network-information" source="npm" />

          <gap:plugin name="cordova-plugin-splashscreen" source="npm" />

          <gap:plugin name="cordova-plugin-media" source="npm" />

       

          <preference name="SplashScreen" value="screen"/>

          <preference name="AutoHideSplashScreen" value="false" />

          <preference name="SplashScreenDelay" value="3000" />

          <preference name="SplashMaintainAspectRatio" value="true" />

       

          <preference name="ShowSplashScreenSpinner" value="false" />

          <preference name="FadeSplashScreen" value="true" />

          <preference name="FadeSplashScreenDuration" value="1.0" />

       

       

          <icon src="icon.png" />

          <icon src="res/icon/android/icon-36-ldpi.png"   gap:platform="android"    gap:density="ldpi" />

          <icon src="res/icon/android/icon-48-mdpi.png"   gap:platform="android"    gap:density="mdpi" />

          <icon src="res/icon/android/icon-72-hdpi.png"   gap:platform="android"    gap:density="hdpi" />

          <icon src="res/icon/android/icon-96-xhdpi.png"  gap:platform="android"    gap:density="xhdpi" />

        

          <icon src="res/icon/blackberry/icon80.png"     gap:platform="blackberry" />

          <icon src="res/icon/blackberry/icon80.png"     gap:platform="blackberry" gap:state="hover"/>

        

          <icon src="res/icon/ios/icon-57.png"            gap:platform="ios"        width="57" height="57" />

          <icon src="res/icon/ios/icon-72.png"            gap:platform="ios"        width="72" height="72" />

          <icon src="res/icon/ios/icon-57-2x.png"         gap:platform="ios"        width="114" height="114" />

          <icon src="res/icon/ios/icon-72-2x.png"         gap:platform="ios"        width="144" height="144" />

          <icon src="res/icon/webos/icon-64.png"          gap:platform="webos" />

          <icon src="res/icon/windows-phone/icon-48.png"  gap:platform="winphone" />

          <icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone"   gap:role="background" />

       

       

          <gap:splash src="res/screen/android/screen-ldpi-landscape.png"  gap:platform="android" gap:density="ldpi" />

          <gap:splash src="res/screen/android/screen-mdpi-landscape.png"  gap:platform="android" gap:density="mdpi" />

          <gap:splash src="res/screen/android/screen-hdpi-landscape.png"  gap:platform="android" gap:density="hdpi" />

          <gap:splash src="res/screen/android/screen-xhdpi-landscape.png" gap:platform="android" gap:density="xhdpi" />

        

          <gap:splash src="res/screen/blackberry/screen225.png"         gap:platform="blackberry" />

        

          <gap:splash src="res/screen/ios/screen-iphone-portrait.png"    gap:platform="ios"     width="320" height="480" />

          <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios"     width="640" height="960" />

          <gap:splash src="res/screen/ios/screen-ipad-portrait.png"      gap:platform="ios"     width="768" height="1024" />

          <gap:splash src="res/screen/ios/screen-ipad-landscape.png"     gap:platform="ios"     width="1024" height="768" />

          <gap:splash src="res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" />

       

       

       

          <gap:splash src="icon.png" />

       

         <gap:plugin name="cordova-plugin-whitelist" source="npm" />

       

         <!-- Allow links to open in a browser -->

          <allow-intent href="https://m.bla.co.nz/*" />

       

        <!-- Don't block any requests -->

          <access origin="*" />

       

        <access origin="http://bla.com" />

       

       

      </widget>

        • 1. Re: unfortunately app has stopped
          kerrishotts Adobe Community Professional

          First thoughts:

           

          1) You aren't pinning your plugins at a specific version number. I suggest you do so; this can lead to different behavior between builds when new plugin versions are released (especially if a plugin has breaking changes).

           

          2) Is there anything in your device logs? (adb logcat) There's a lot of info logged there, and we don't need nearly all of it, but look around the time the error message appears on-screen. Then see if there are any interesting log messages from the same time range. If so, please post them here.

          • 2. Re: unfortunately app has stopped
            tuvboy Level 1

            Thanks Kerry!

            Changed to, and now compiles. Yay.

             

            <plugin name="org.apache.cordova.media" source="pgb" spec="0.2.16" />

            <plugin name="org.apache.cordova.network-information" source="pgb" spec="0.2.15" />

            <plugin name="org.apache.cordova.splashscreen" source="pgb" spec="1.0.0" />

            <plugin name="cordova-plugin-whitelist" spec="1.2.1" />

            • 3. Re: unfortunately app has stopped
              jcesarmobile_ Level 1

              Even if you fixed your problem, you should use the new ids

               

              cordova-plugin-media instead of org.apache.cordova.media

              cordova-plugin-network-information instead of org.apache.cordova.network-information

              cordova-plugin-splashscreen instead of org.apache.cordova.splashscreen

              • 4. Re: unfortunately app has stopped
                tuvboy Level 1

                Thanks! The real issue was initially I was using the wrong source, ie source="npm" not source="pgb"

                Ive updated my plugins, and not declared spec version, as i understand this builds with the latest version, and is compiling, so all is good! cheers P

                 

                <plugin name="cordova-plugin-media" source="pgb" />

                <plugin name="cordova-plugin-network-information" source="pgb" />

                <plugin name="cordova-plugin-splashscreen" source="pgb" />

                • 5. Re: unfortunately app has stopped
                  jcesarmobile_ Level 1

                  No, pgb is deprecated, you have to use npm (if you don't set the source it will use npm)

                  • 6. Re: unfortunately app has stopped
                    tuvboy Level 1

                    Getting weird! Originally I was using, and it would start.

                     

                    <gap:plugin name="cordova-plugin-network-information" source="npm" />

                    <gap:plugin name="cordova-plugin-splashscreen" source="npm" />

                    <gap:plugin name="cordova-plugin-media" source="npm" />

                     

                    Changed to; works fine:

                     

                    <plugin name="cordova-plugin-media" source="pgb" />

                    <plugin name="cordova-plugin-network-information" source="pgb" />

                    <plugin name="cordova-plugin-splashscreen" source="pgb" />

                     

                    So im a little confused!?

                    • 7. Re: unfortunately app has stopped
                      tuvboy Level 1

                      Getting weird! Originally I was using, and it would start.

                       

                      <gap:plugin name="cordova-plugin-network-information" source="npm" />

                      <gap:plugin name="cordova-plugin-splashscreen" source="npm" />

                      <gap:plugin name="cordova-plugin-media" source="npm" />

                       

                      Changed to; works fine:

                       

                      <plugin name="cordova-plugin-media" source="pgb" />

                      <plugin name="cordova-plugin-network-information" source="pgb" />

                      <plugin name="cordova-plugin-splashscreen" source="pgb" />

                       

                      So im a little confused!?

                      • 8. Re: unfortunately app has stopped
                        jcesarmobile_ Level 1

                        It's really strange, you should use the npm ones, pgb source is being replaced.

                        I suppose one of the plugins on NPM has some bug that makes your app crash, try adding them one by one to figure out which one is making the app crash