- Home /
After updating my android SDK, getting an error for in-app purchases
I use the Soomla plugin, and I just updated the android SDK version 21 and had to change the target sdk version in my manifest file to 21 in order to build. Now The game will build and run, but I get an error when trying to do an in-app purchase.
It turns out the reason it wasn't working is because my version code was different from that of the published .apk. It apparently had nothing to do with updating the android SD$$anonymous$$.
Answer by gurdotan · Apr 14, 2015 at 08:47 AM
Can you turn on the debug logs and post the logs with the errors? Are you using Google Play or Amazon? Can you post full reproduction steps?
I am on google play. I can post the debug logs when i get home from work today. As far as replicating the problem, i know that i just installed 25 packages to the android sdk, making the linrary sdk version 21. I know this because the next build i tried to make gave me an error saying the library target was 21 and my manifest did not match. So i changed the target sdk in my manifest to 21, and then was able to build.
After doing some research i read that purchases only work if the version code is equal to that of my published apk on google play. That matbbe the issue I will be testing that when i can today as well.
Your answer
Follow this Question
Related Questions
Android build failes because of manifest 0 Answers
Location of sdk in Android Studio? 1 Answer
Purchases showing as tests 0 Answers