Android Code Version Error

Discussion in 'Technical Discussion' started by Machine Rises, Dec 6, 2015.

  1. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    I am trying to update my APK and it's saying it's still version 1. But I changed the Code Version to 2 and the Game Version to 1.0.1

    Currently can't update.
     
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    After export open AndroidManifest.xml and check the line with "versionCode" is set to the value you want, if not just edit it. I do know the release we are preparing this is working (current version may or may not have a bug, I remember fixing this a while back though).
     
  3. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    Ok thanks Andy
     
  4. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    @Andy it appears to be the correct code already...
     

    Attached Files:

  5. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Hmmm... then are you using the same keystore? And are you building a release APK?
     
    superjack765 likes this.
  6. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    Hmm it might be that I didn't generate a new keystore when I did the latest apk. Yeah I'm building the APK the same way that we did for the one that got accepted. I'll see if it's the keystore
     
    superjack765 likes this.
  7. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    NO, you NEED to make sure you are using the EXACT same keystore for any RELEASE versions. Otherwise you will NEVER be able to update you game. This is critically important.
     
  8. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    oh wow I'm glad I never claimed to be an Android expert haha. This sounds like something basic everyone should know:rolleyes:
     
    superjack765 likes this.
  9. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    my pub would have that then bc he's the one uploading.
     
  10. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    It's not obvious and completely different case than iTunes. :)

    We do have a note in the Google Play guide about it, though it is often missed.
     
  11. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    Ok got the right keystore thank goodness! @Andy are we able to utilize google play leaderboards? They say it's mandatory to have achievements. This isn't something we have to do on the bb end right?
     
  12. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    No, achievements are not really mandatory in my experience. I think you can enter dummy data (or maybe nothing at all). Maybe someone who has published recently can give some better info on this. (maybe make a new post with relevant title)
     
  13. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    You have to fill out the achievements, just add anything, it won't show, but google makes you add them, its stupid they should make it optional.
    You can't publish leader board until achievements section is done.
    Google play leaderboard is a pain, just a heads up.
     
  14. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    ah ok we got it working. Thanks for the tips!
     
  15. ruhm64

    ruhm64 Avid Boxer

    Joined:
    Oct 11, 2015
    Messages:
    168
    Likes Received:
    47
    Any leaderboard tips for Android @playsgames6666? I have Alpha testing allowed in the Testing lab, followed the Developer directions but that only goes so far and is not from a BB pro.
     
    playsgames6666 likes this.
  16. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Ok. google play leader boards are a bit confusing first time round.
    Check list,
    leaderboard created
    app is linked, (most people miss this one.)
    achievements you have to create 5 just fill in anything.
    Licence key added in your code. (and they miss this one too.)
    leader board id
    game service id
    have you added game service id in strings.xml ?
    What is your error, what is your error message.
    Also leader board and sign in only work on a signed APK, So you need to compile a signed APK then install on your device for testing.
    Umm thats all i can help with, until i know your error message on your device. or your logcat
    Let me know we will get it working.
     
    ruhm64 likes this.
  17. Outlaw

    Outlaw Boxer

    Joined:
    Jan 28, 2016
    Messages:
    21
    Likes Received:
    2
    Hi There,
    This is the first time i'm trying to upload android app via buildbox i have got everything working except for the google play sign in error.
    i have done most of the stuff which you have mentioned in this post except for this:
    have you added game service id in strings.xml ?

    how do i add this? where do i need to go to make it work i checked in eclipse but i cannot find strings.xml
    i'm using a macbook pro and this is a real headache not very straight forward like ios so can please help me out thanks.
     

Share This Page