facebook

cannot install apk to android device

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #545411 Reply

    MalakSadik
    Participant

    Hi
    in MyEclipse I performed a successful remote phonegap build for android and got the .apk file.
    when I copy and install the app in my android device, I got the following error when opening the app:
    “unfortunately, <app> has stopped”.
    what could cause this error and how can I fix that?
    below is the config

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <widget xmlns="http://www.w3.org/ns/widgets"
    	xmlns:gap="http://phonegap.com/ns/1.0"
    	xmlns:android="http://schemas.android.com/apk/mobione/android"
    	>
    
    	<!-- Either rename your prj startup html file to index.html or replace index.html below
    		with the name of your project startup html file 
    	-->
    	<content src="Main.html" />
    	
    	<!-- Uncomment and edit to specify a specific phonegap version 
    		otherwise use PhoneGap Build will use the most recent version 
    	-->
    
    	<!-- Core cordova/phonegap plugins -->
    	<plugin name="cordova-plugin-email-composer" spec="0.8.3" />
    	<plugin name="cordova-plugin-battery-status" spec="~1.2.2" />
    	<plugin name="cordova-plugin-console" spec="~1.0.5" />
    	<plugin name="cordova-plugin-device" spec="~1.1.4" />
    	<plugin name="cordova-plugin-device-motion" spec="~1.2.3" />
    	<plugin name="cordova-plugin-device-orientation" spec="~1.0.5" />
    	<plugin name="cordova-plugin-dialogs" spec="~1.3.1" />
    	<plugin name="cordova-plugin-inappbrowser" spec="~1.6.1" />
    	<plugin name="cordova-plugin-network-information" spec="~1.3.1" />
    	<plugin name="cordova-plugin-splashscreen" source="npm" />
    	<plugin name="cordova-plugin-vibration" spec="~2.1.3" />
    	<plugin name="cordova-plugin-statusbar" spec="~2.2.1" />
    	<plugin name="cordova-plugin-whitelist" spec="~1.3.1" />
    	<plugin name="cordova-plugin-printer" />
    <!-- <plugin name="cordova-plugin-camera" spec="~2.3.1" />
    	<plugin name="cordova-plugin-contacts" spec="~2.2.1" /> 
    	<plugin name="cordova-plugin-file" spec="~4.3.1" />
    	<plugin name="cordova-plugin-file-transfer" spec="~1.6.1" />
    	<plugin name="cordova-plugin-geolocation" spec="~2.4.1" />
    	<plugin name="cordova-plugin-globalization" spec="~1.0.5" />
    	<plugin name="cordova-plugin-media" spec="~2.4.1" />
    	<plugin name="cordova-plugin-media-capture" spec="~1.4.1" />
    	-->
    
    	<!-- MobiOne plugins  -->
    	<!--  
    		<plugin name="cordova.plugin.printer" source="nmp"/>
    		<plugin name="com.genuitec.mobione.phoneui" spec="0.2.7" source="npm"/>
    		<plugin name="org.apache.cordova.vibration" spec="0.3.13" source="pgb" />
    		<plugin name="com.phonegap.plugins.childbrowser" spec="5.0.0" source="pgb" />
    		<plugin name="de.appplant.cordova.plugin.printer" source="pgb" version="0.7.1"/>
    		<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" />
    	-->
    	<!-- For a descripton of preferences see 
    		http://docs.build.phonegap.com/en_US/configuring_preferences.md.html#Preferences 
    	-->
    	<!-- set false to show android statusbar -->
    	<preference name="phonegap-version" value="cli-6.3.0" />
    	<preference name="StatusBarOverlaysWebView" value="false" />
    	<preference name="StatusBarBackgroundColor" value="#FFFFFF" />
    	<preference name="StatusBarStyle" value="default" />
    	<preference name="permissions" value="none" />
    	<preference name="orientation" value="default" />
    	<preference name="target-device" value="universal" />
    	<preference name="fullscreen" value="true" />
    	<preference name="webviewbounce" value="true" />
    	<preference name="prerendered-icon" value="true" />
    	<preference name="stay-in-webview" value="false" />
    	<preference name="detect-data-types" value="true" />
    	<preference name="exit-on-suspend" value="false" />
    	<preference name="show-splash-screen-spinner" value="false" />
    	<preference name="FadeSplashScreen" value="true" />
    	<preference name="FadeSplashScreenDuration" value="1.0" />
    	<preference name="SplashScreen" value="splash" />
    	<preference name="SplashScreenDelay" value="5000" />
    	<preference name="auto-hide-splash-screen" value="false" />
    	<preference name="disable-cursor" value="false" />
    	<preference name="android-minSdkVersion" value="7" />
    	<preference name="android-installLocation" value="auto" />
    
    	<!-- Whitelist of urls this app may open in an InAppBrowser -->
    	<access origin="*" />
    
    	<!-- Default app icon appearing on device homescreen -->
    	<!-- iOS app branding artwork -->
    	<icon src="icon.png" />
    	<splash src="splash.png" />
    
    	<platform name="ios">
    		<!-- iOS 9.0+ --><!-- iPhone 6 Plus  -->
    		<icon  width="40" height="40"
    		src="www/res/icon/ios/icon-40.png" />
    		<icon  width="80" height="80"
    		src="www/res/icon/ios/icon-40@2x.png" />
    		<icon  width="120" height="120"
    		src="www/res/icon/ios/icon-40@3x.png" />
    		<icon height="57"  width="57"
    			src="www/res/icon/ios/icon-57.png" />
    		<icon  width="144" height="144"
    		src="www/res/icon/ios/icon-57@2x.png" />
    		<icon height="60"  width="60"
    			src="www/res/icon/ios/icon-60.png" />
    		<icon height="120"  width="120"
    			src="www/res/icon/ios/icon-60@2x.png" />
    		<icon width="180" height="180" 
    			src="www/res/icon/ios/icon-60@3x.png" />
    		<icon height="72" width="72"
    			src="www/res/icon/ios/icon-72.png" />
    		<icon height="76"  width="76"
    			src="www/res/icon/ios/icon-76.png" />
    		<icon height="152"  width="152"
    			src="www/res/icon/ios/icon-76@2x.png" />	
    		<icon height="167"  width="167"
    			src="www/res/icon/ios/icon-83.5@2x.png" />
    		<icon height="120"  width="120"
    			src="www/res/icon/ios/icon-120.png" />
    		<icon height="512"  width="512"
    			src="www/res/icon/ios/icon512.png" />
    		<icon height="1024"  width="1024"
    			src="www/res/icon/ios/icon1024.png" />
    		<icon height="29"  width="29"
    			src="www/res/icon/ios/icon-Small.png" />
    		<icon height="58"  width="58"
    			src="www/res/icon/ios/icon-Small@2x.png" />
    		<icon height="87"  width="87"
    			src="www/res/icon/ios/icon-Small@3x.png" />		
    
    	<preference name="SplashScreen" value="www/res/screen/ios/Default-568h@2x~iphone.png" />  
        <splash src="www/res/screen/ios/Default-568h@2x~iphone.png"/>
    	<splash height="1136" platform="ios" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" />  
        <splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" />  
        <splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" />  
        <splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" />  
        <splash height="1536" platform="ios" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />  
        <splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />  
        <splash height="2048" platform="ios" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />  
        <splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />  
        <splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />  
        <splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" />  
      
    
    	</platform>
    
    	<!-- Configure remote debugging on Android 4.4 & greater.                     -->
    	<!--  Overrides MyEclipse Build dialog's debug mode.                          -->
    	<!-- Set android:debuggable="true" to enable remote debugging.                -->
    	<!-- Set android:debuggable="false" or remove element for production release. -->
    	<!-- 
    		<config-file parent="/manifest" platform="android">
    		<application android:debuggable="false"/>
    		</config-file>
    	-->
    	<!-- Android app branding artwork -->
    		
    		<platform name="android">  
      
        <icon qualifier="ldpi" src="www/res/icon/android/drawable-ldpi/icon.png" />  
        <icon qualifier="mdpi" src="www/res/icon/android/drawable-mdpi/icon.png" />  
        <icon qualifier="hdpi" src="www/res/icon/android/drawable-hdpi/icon.png" />  
        <icon qualifier="xhdpi" src="www/res/icon/android/drawable-xhdpi/icon.png" />  
        <icon qualifier="xxhdpi" src="www/res/icon/android/drawable-xxhdpi/icon.png" />  
        <icon qualifier="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi/icon.png" /> 
        
        <preference name="SplashScreen" value="www/res/screen/android/drawable-ldpi/splash.png" />  
        <splash src="www/res/screen/android/drawable-ldpi/splash.png"/>  
      
        <splash qualifier="port-ldpi" src="www/res/screen/android/drawable-ldpi/splash.png" />  
        <splash qualifier="port-mdpi" src="www/res/screen/android/drawable-mdpi/splash.png" />  
        <splash qualifier="port-hdpi" src="www/res/screen/android/drawable-hdpi/splash.png" />  
        <splash qualifier="port-xhdpi" src="www/res/screen/android/drawable-xhdpi/splash.png" />  
        <splash qualifier="port-xxhdpi" src="www/res/screen/android/drawable-xxhdpi/splash.png" />  
        <splash qualifier="port-xxxhdpi" src="www/res/screen/android/drawable-xxxhdpi/splash.png" /> 
        
        <splash qualifier="land-ldpi" src="www/res/screen/android/drawable-ldpi/splash (2).png" />  
        <splash qualifier="land-mdpi" src="www/res/screen/android/drawable-mdpi/splash (2).png" />  
        <splash qualifier="land-hdpi" src="www/res/screen/android/drawable-hdpi/splash (2).png" />  
        <splash qualifier="land-xhdpi" src="www/res/screen/android/drawable-xhdpi/splash (2).png" />  
        <splash qualifier="land-xxhdpi" src="www/res/screen/android/drawable-xxhdpi/splash (2).png" />  
        <splash qualifier="land-xxxhdpi" src="www/res/screen/android/drawable-xxxhdpi/splash (2).png" />  
      
         
      </platform>
    </widget>
    #545453 Reply

    Brian Fernandes
    Moderator

    Malak,

    I’m afraid this is most likely an application level problem that we won’t be able to assist with, or a problem with PhoneGap iself – I suggest asking in a PhoneGap or Cordova forum.

    The tools in 2015 are dated, please see the following note on our PhoneGap support.
    https://www.genuitec.com/forums/topic/phonegap-support-in-myeclipse-2016/

    Sorry we couldn’t help further.

    #545494 Reply

    MalakSadik
    Participant

    the app works perfectly on ios device

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: cannot install apk to android device

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in