minimum of 2 segments error

Monkey Targets Forums/Android/minimum of 2 segments error

dave.h(Posted 2012) [#1]
Just done my first compile in v56b and got this error.Prob something silly ive not done but any help will be appreciated.I already deleted the build folder.It only happens when i try to put admob in.


ERROR:
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:421: Application package '' must have a minimum of 2 segments.


therevills(Posted 2012) [#2]
Whats your package name?

I'm guessing youve got it only as a single word. Name it something like this:

com.daveh



dave.h(Posted 2012) [#3]
I'm pretty sure it was com.happy coz the game is called happy jewels but I will check when I finish work.it will build though if I dont try to put admob in so I might try an earlier version to see if I can narrow it down


therevills(Posted 2012) [#4]
Strange.

BTW the package name should be your "business" name, I use com.therevillsgames and then name the game. This way you can group all your apps and I think Google Play uses it to.


dave.h(Posted 2012) [#5]
i think this is prob somthing to do with how im doing admob.ive just noticed the updated admob in the code section so im gonna work through this as some changes have been made in 56b but thanks anyway therevills.


golomp(Posted 2012) [#6]
Therevills, you add game name in first position or last ?
personnally i put it at first place( GameName.com.XXX), any one has tested
to put it at last place ? (com.XXX.GameName)


therevills(Posted 2012) [#7]
Neither :P

#ANDROID_APP_LABEL="SuperGame"
#ANDROID_APP_PACKAGE="com.therevillsgames"



golomp(Posted 2012) [#8]
And Google developper console don't cry when you try to upload
and other app with "com.therevillsgames" ?
(even with a different key product)


therevills(Posted 2012) [#9]
Oops sorry, its been awhile since I've messed with Android and I've just checked my previous Monkey games:

package="com.therevillsgames.piratesolitaire"

<application android:label="Pirate Solitaire" android:icon="@drawable/icon">


So it looks like I would do the following:

#ANDROID_APP_LABEL="SuperGame"
#ANDROID_APP_PACKAGE="com.therevillsgames.supergame"


Sorry for the misunderstanding.


golomp(Posted 2012) [#10]
No problem therevills, i am so used you are right i checked myself this afternoon if your solution was working. ;)

In fact it seems Google Play want unique package name...
...and unique app label too...
...and unique key product...