Icon does not appear on the apk or Cordova class not found

I can't get the build.phonegap.com site to build my Android apk and use the icons specified in my file config.xml. I tried several paths for the default icon and none of them does not seem to work. On several occasions, I have confirmed that each path is valid in all elements defined < icon >. I tried to use ConfiGAP to generate my config.xml but it produces a malformed .xml file, so I no longer use it.

I followed Cordova documentation regarding to the customization of the icons found here: Customize app icons - Cordova Apache , but the site doesn't seem to work when you use these conventions. (?)

The weird part is that, when I build the app using the CLI interface on my local machine, the icon appears correctly. "The problem there is that the application does not run properly and get an error" [ERROR] Cordova initialization error: class not found. So it seems that my config.xml file is correct somehow locally but does not when used by the site build.phonegap.com.

Nevertheless, something is not quite right, and what I've read, the issue of the icon and the specific error that I get when the icon is OK are somehow related to something to go wrong in the config.xml file

What I am doing wrong? Advice/thoughts/ridiculous/instructions on how I missed something obvious/etc would be appreciated.

Here is my file config.xml (less identifying information):

<? XML version = "1.0" encoding = "utf - 8"? >

< widget id = "com.xxx.xxx" version = "2.0.5" versionCode = "20005" xmlns =" " http://www.w3.org/ns/widgets "xmlns:gap =" " http://PhoneGap.com/ns/1.0 ">

< name > XXX < / name >

< description >

XXXX

< / description >

" < author email = ' [email protected] "href =" http://www.xxx.com ">

XXX

< / author >

" < = function name" http://API.PhoneGap.com/1.0/device "/ > "

< = "permissions" option name value = "none" / >

< name of option = "orientation" value = "default" / >

< name of option = "target device" value = "universal" / >

< name of option = "full screen" value = "false" / >

< name of option = "webviewbounce" value = "true" / >

< name of option = "rentals-icon" value = "true" / >

< = "stay webview" option name value = "false" / >

< name of option = value 'ios-statusbarstyle"="Black opaque"/ >

< name of option = "detect types of data" value = "true" / >

< name of option = "DisallowOverscroll" value = "true" / >

< = 'exit suspend' option name value = "false" / >

< option value = "show-splash-screen-spinner" name = "true" / >

< option value = "auto-hide-splash-screen" name = "true" / >

< name of option = "disable-cursor" value = "false" / >

< name of option = "android-minSdkVersion" value = "14" / >

< = "android-installLocation' value = 'auto' option name / >

< name of option = "AndroidPersistentFileLocation" value = "Compatibility" / >

< option name = "AndroidExtraFilesystems" value = "files, documents of external files, SD card, cache, cache-external" / >

< = "phonegap-version" value = '3.7.0' option name / >

< gap: plugin name = "ch.ti8m.documenthandler" version = "0.2.1" / > "

< gap: plugin name = "org.apache.cordova.console" version = "0.2.7" / > "

< gap: plugin name = "io.github.pwlin.cordova.plugins.fileopener" version = "1.0.1" / > "

< gap: plugin name = "org.apache.cordova.device" / > "

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

< gap: plugin name = "org.apache.cordova.inappbrowser" version = "0.4.0" / > "

< src = "icon.png icon" gap: role = "default" / > "

< platform name = "android" >

"< density icon ="ldpi"src="res/icon/android/36.png "/ >

"< density icon ="mdpi"src="res/icon/android/48.png "/ >

"< density icon ="hdpi"src="res/icon/android/72.png "/ >

"< density icon ="xhdpi"src="res/icon/android/96.png "/ >

< / platform >

< platform name = "ios" >

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

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

"< icon gap: Platform = 'ios' height ="76"src="res/icon/ios/76x76.png "width ="76"/ >

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

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

"< icon gap: platform ="ios"height ="144"src="res/icon/ios/114x144.png "width ="144"/ >

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

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

< gap: gap platform: splash = "ios" height = "960" src = "res/screen/ios/[email protected]" width = "640" / >

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

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

"< gap: gap platform: splash = 'ios' height ="1136"src="res/screen/ios/iphone-568.png "width ="640"/ >

< / platform >

" < access origin = ' http://127.0.0.1 * " />

" < access origin = ' https://mail1.xxx.com:xxx * " />

" < access origin = ' https://im.xxx.com:xxx * " />

" < access origin = ' https://im.xxx.com:xxx * " />

< access origin = "" * "/ >"

< / widget >

https://Forum.ionicframework.com/t/erroe-error-initializing-Cordova-class-not-found-only-o n-android/3555

Post edited by: display of the error message pasted double Matthew McLarty kidnapped by the bottom of the post.

Here are a few comments:

1. you create to the BMP version 3.7.0.  This application will not be approved by Google.

Use the cli version - 6.3.0

2. remove the element feature of your config. It is obsolete.

3. do not use the old, obsolete bmp plugins. Instead, use the latest versions of the plugins of the NPM. Be aware that they are named differently, usually cordova-plugin-xxxxx

Find them here: Plugin Search - Apache Cordova

4. you have not any spill for Android. Don't forget to include mdpi - dimensions xxxhdpi

5. you need the dimensions large projections of iOS. See the docs for Apple iOS on "images of launch.

6. you have specified for landscape and portrait. Yet, you have only a landscape splashscreen iOS. Add all the others.

And for your zip file: can you confirm that you have config.xml and index.html in the root directory of the zip?

Tags: PhoneGap

Similar Questions

Maybe you are looking for

  • How can I block internet access program?

    I have a program I don't want to have access to the internet. How to let firefox block?

  • Satellite P200-18Z: How can I do wake on LAN?

    How can I make WoL work on this computer.I enabled it in bios, but I can't even wake my phone to another device.I am running windows 7 ultimate, if this material. Thank you

  • HP G60 - 123CL laptop PC: cd software and drivers for Windows 7

    I just bought the cd online for windows7 operating sytem for software and drivers.  I was really hoping to get a print driver included so I can reinstall my hp all in one printer c7250.  I tried the hp Wizard, but did not have the full software provi

  • Swedish language and keyboard / liquid 110 Duo

    I'm a Swede living in France and bought a Z110Dou liquid today to solve my current problem with two mobile... BUT trying to change the language, a find from many languages but not Swedish. Is it possible to download the keyboard and the Swedish langu

  • Break a timeperiod to one day with a new period

    with EMPLOYEE_PUNCHES AS(SELECT TO_DATE (07 JANUARY 1 2014:30 ',' DD/MM/YYYY HH24 ') PUNCHIN, TO_DATE (08 JANUARY 1 2014:30 ',' DD/MM/YYYY HH24 ') PUNCHOUT OF DOUBLE UNION ALLSELECT TO_DATE (07 JANUARY 1 2014:30 ',' DD/MM/YYYY HH24 ') PUNCHIN, TO_DAT