3 Replies Latest reply on Mar 1, 2017 10:13 AM by bhaskarg67312891

    My app doesn't start on Android

    bhaskarg67312891

      i am able to successfully compile and install the app but when I open the app on the phone, I am getting "Unfortunarely LizenUp stopped working" error message, and the app wouldn't start. I thought it could be because of a minsdk version issue so I removed barcode plugin (I read somewhere that its causing some issues), but the issue persists.

        • 1. Re: My app doesn't start on Android
          FabioWidmer

          Can you please show us your config.xml? Yesterday I had the same problem because I used the general <splash src="splash.png" />

          • 2. Re: My app doesn't start on Android
            kerrishotts Adobe Community Professional

            Also share any logs from the device around the time of the crash (adb logcat). Be sure to remove any private/sensitive information in anything you share with us.

            • 3. Re: My app doesn't start on Android
              bhaskarg67312891 Level 1

              Here's my 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"


              xmlns:android   = "http://schemas.android.com/apk/res/android"


              id        = "com.lizenup.mobileapp"


              versionCode = "1817"

               

              version   = "1.5.0">


              <name>LizenUp</name>


              <description>


              </description>


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


              </author>


              <preference name="android-build-tool"    value="gradle" />


              <preference name="phonegap-version"           value='cli-6.3.0' />          <!-- all: current version of PhoneGap -->


              <preference name="orientation"                value="portrait" />        <!-- all: default means both landscape and portrait are enabled -->


              <preference name="target-device"              value="universal" />      <!-- all: possible values handset, tablet, or universal -->


              <preference name="fullscreen"                 value="true" />           <!-- all: hides the status bar at the top of the screen -->


              <preference name="prerendered-icon"           value="true" />           <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->


              <preference name="ios-statusbarstyle"         value="black-opaque" />   <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->


              <preference name="detect-data-types"          value="true" />           <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->


              <preference name="exit-on-suspend"            value="false" />          <!-- ios: if set to true, app will terminate when home button is pressed -->


              <preference name="auto-hide-splash-screen"    value="true" />           <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->


              <preference name="disable-cursor"             value="false" />          <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->


              <preference name="android-minSdkVersion"  value="16"/>

               

              <!-- <preference name="android-targetSdkVersion" value="16"/> -->

               

              <preference name="android-installLocation"    value="auto" />           <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->


              <preference name="iosExtraFilesystems"    value="library,library-nosync,documents,documents-nosync,cache,bundle,root" />


              <preference name="AndroidExtraFilesystems"    value="files,files-external,documents,sdcard,cache,cache-external,root" />


              <preference name="AndroidPersistentFileLocation" value="Compatibility" />


              <preference name="iosPersistentFileLocation" value="Library" />


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


              <preference name="StatusBarBackgroundColor" value="#289077"/>


              <preference name="StatusBarStyle" value="blackopaque" />


              <gap:config-file platform="android" parent="/manifest" mode="add">


              <activity android:name="URLHandler"


              android:label="@string/app_name">


              <intent-filter android:label="@string/app_name">


              <action android:name="android.nfc.action.NDEF_DISCOVERED" />


              <data android:scheme="http"


              android:host="app.lizenup.com"


              android:pathPrefix="/code/"


              />


              <category android:name="android.intent.category.DEFAULT" />


              </intent-filter>


              </activity>

               

              gap:config-file>


              uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  

               

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


              feature name="Media">


              <param name="android-package" value="org.apache.cordova.media.AudioHandler" />

               

              feature>


              feature name="SocialSharing">


              <param name="ios-package" value="SocialSharing" />

               

              feature>


              feature name="SocialSharing">


              <param name="android-package" value="nl.xservices.plugins.SocialSharing" />

               

              feature>


              feature name="SocialSharing">


              <param name="wp-package" value="SocialSharing"/>

               

              feature>


              feature name="File">


              <param name="ios-package" value="CDVFile" />

               

              feature>


              feature name="FileTransfer">


              <param name="ios-package" value="CDVFileTransfer" />

               

              feature>


              <!-- Plugins -->


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


              <access origin="*"/>


              <allow-navigation href="http://*/*" />


              <allow-navigation href="https://*/*" />


              <allow-navigation href="data:*" />


              <allow-intent href="*" />


              <plugin name="audiotoggle" source="npm" />


              <plugin name="cordova-plugin-headsetdetection" source="npm"/>


              <!-- <plugin name="com.rotorgames.telephonenumber" spec="1.0.0" source="pgb" />    -->


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

               

              <gap:plugin name="com.chariotsolutions.nfc.plugin" source="npm" />


              <gap:plugin name="com.telerik.plugins.nativepagetransitions" source="npm" />


              <plugin name="cordova-sqlite-storage" spec="1.2.1" source="npm" />


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


              <gap:plugin name="org.apache.cordova.battery-status"  source="npm" />


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


              <variable name="CAMERA_USAGE_DESCRIPTION" value="To capture images for tags" />


              <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="To select images for tags from photo library" />


              </gap:plugin>


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


              <gap:plugin name="org.apache.cordova.console"  source="npm" />


              <gap:plugin name="org.apache.cordova.contacts"  source="npm" />


              <plugin name="cordova-plugin-device" version="1.0.1" source="npm" />


              <gap:plugin name="org.apache.cordova.device-motion"  source="npm" />


              <gap:plugin name="org.apache.cordova.device-orientation"  source="npm" />


              <gap:plugin name="org.apache.cordova.dialogs"  source="npm" />


              <gap:plugin name="org.apache.cordova.file"  source="npm" />


              <gap:plugin name="org.apache.cordova.file-transfer"  source="npm" />


              <gap:plugin name="org.apache.cordova.geolocation"  source="npm" />


              <gap:plugin name="org.apache.cordova.globalization"  source="npm" />


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


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


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


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


              <gap:plugin name="nl.x-services.plugins.actionsheet" source="npm" />


              <gap:plugin name="org.apache.cordova.vibration"  source="npm" />


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


              <gap:plugin name="nl.kingsquare.cordova.background-audio" source="npm"  />


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


              <!-- Push Messaging Start -->


              <plugin name="urbanairship-cordova" source="npm" version="5.3.1"/>


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


              <!-- Urban Airship app credentials -->


              <preference name="com.urbanairship.production_app_key" value="gbrTMsgpTjijesWpPoj0Pw" />


              <preference name="com.urbanairship.production_app_secret" value="OSA-zniSTG6c8rKuscC7BA" />


              <preference name="com.urbanairship.development_app_key" value="EByw4GA5S9aX_PgDaE_5fw" />


              <preference name="com.urbanairship.development_app_secret" value="86SHZowETqKgwcimVCZLrQ" />


              <!-- If the app is in production or not should be be false for dev, true for prod-->


              <preference name="com.urbanairship.in_production" value="false" />


              <!-- Enable push when the application launches (instead of waiting for enablePush js call).  Defaults to false -->


              <preference name="com.urbanairship.enable_push_onlaunch" value="true" />


              <!-- Only required for Android. -->


              <preference name="com.urbanairship.gcm_sender" value="1071303018499" />


              <!-- Enable Analytics when the application launches -->


              <!-- Warning: Features that depend on analytics being enabled may not work properly if analytics is disabled (reports, location segmentation, region triggers, push to local time). -->


              <preference name="com.urbanairship.enable_analytics" value="true" />


              <!-- Override the Android notification icon -->


              <preference name="com.urbanairship.notification_icon" value="ic_notification" />


              <!-- Override the Android notification sound (sound file should be in res/raw) -->


              <preference name="com.urbanairship.notification_sound" value="push" />


              <!-- Specify the notification accent color for Android API 21+ (Lollipop) -->


              <preference name="com.urbanairship.notification_accent_color" value="#0000ff" />


              <!-- Clear the iOS badge on launch -->


              <preference name="com.urbanairship.clear_badge_onlaunch" value="true" />


              <!-- Enables/disables auto launching the message center when the corresponding push is opened. -->


              <preference name="com.urbanairship.auto_launch_message_center" value="true" />


              <!-- Push Messaging End -->


              <plugin name="com.paypal.cordova.mobilesdk" spec="3.1.24" source="npm" />


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


              <gap:plugin name="ionic-plugin-keyboard" version="1.0.8"  source="npm" />


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


              <param name="URL_SCHEME" value="lizenup" />


              </gap:plugin>


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


              <!-- Third party plugins -->


              <!-- A list of available plugins are available at https://build.phonegap.com/plugins -->


              <gap:plugin name="manateeworks-barcodescanner" version="1.8.7" source="npm"/>


              <!-- lets use this for Android devices that have no NFC or NFC disabled -->


              <!-- to avoid the minsdk issue-->


              <gap:plugin spec="https://github.com/gustavocampos/phonegap-plugin-barcodescanner" source="git" />


              <!-- Define app icon for each platform. -->


              <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/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/ios/icon-small.png"         gap:platform="ios"        width="29" height="29" />


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


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


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


              <icon src="res/icon/ios/icon-60-3x.png"         gap:platform="ios"        width="180" height="180" />


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


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


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


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


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


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


              <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" />


              <!-- Define app splash screen for each platform. -->


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


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


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


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


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


              <!-- iPhone and iPod touch -->


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


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


              <!-- iPhone 5 / iPod Touch (5th Generation) -->


              <splash src="res/screen/ios/screen-iphone-portrait-568h-2x.png" platform="ios" width="640" height="1136" />


              <!-- iPhone 6 -->


              <splash src="res/screen/ios/screen-iphone-portrait-3x.png" platform="ios" width="750" height="1334" />


              <splash src="res/screen/ios/screen-iphone-portrait-4x.png" platform="ios" width="1242" height="2208" />


              <splash src="res/screen/ios/screen-iphone-landscape-3x.png" platform="ios" width="2208" height="1242" />


              <!-- iPad -->


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


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


              <!-- Retina iPad -->


              <splash src="res/screen/ios/screen-retina-ipad-portrait.png" platform="ios" width="1536" height="2048" />


              <splash src="res/screen/ios/screen-retina-ipad-landscape.png" platform="ios" width="2048" height="1536" />


              <access origin="*"/>

               

              <!-- <platform name="ios"> -->


              <config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">


              <string>This app needs access to your Photo Library to use images for tags.</string>


              </config-file>


              <config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">


              <string>Allow to scan tags and pictures</string>


              </config-file>


              <!-- </platform> -->


              widget>