Android package name error

  • 1
  • Problem
  • Updated 9 years ago
  • Solved
Hi, I keep getting this message when trying to upload .ipa file to android market.

1. "The package name of your apk (com.phonegap.www) is the same as the package name of another developer's application. Choose a new package name."

The thing is that I have entered the package name, but the ipa is not being built with it, any ideas?

Package name: org.no-ip.phecc
Photo of Gary

Gary

  • 13 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
I'm assuming since you are getting reasonable error messages back from the Market, that you actually mean "apk", not "ipa" :)

Does your app have a config.xml in it? The XML file, or via the web interface (when you go to Edit your app) are the only ways to specify the package of your built apps, including Android apps.

For config.xml docs, see https://build.phonegap.com/docs/confi... - specifically note that the "id" attribute in your "<widget>" element gets used as your Android app's package name.
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
The package name has to be a valid Java identifier, so it can't include any hyphens.

(if the package submitted isn't a valid java package, we sub in com.phonegap.www)
Photo of Gary

Gary

  • 13 Posts
  • 0 Reply Likes
Sorry meant "apk", thats the problem trying to do iphone and android at the same time :)

No I dont have a config.xml file will it fail to upload if the build doesnt contain this file? I will try build it again with a valid Java identifier, and see if it will upload

Thanks for your swift replies.
Photo of Gary

Gary

  • 13 Posts
  • 0 Reply Likes
Uploads fine now, changed the package name to a valid Java identifier and it worked. I think I will add the config file as its prob better practice and have more options with it.

Thanks again