Search code examples
androidin-app-purchaseusb-debugging

How to debug inapp billing in android?


I would like to debug the whole in app billing process of my app. But unfortunatly, everytime i try to buy some products of my app when i am in usb debugging mode and error occurs, telling me, that the app is not signed and that's why i can't buy anything. When i upload the app on google play, the purchasing works, so it obviously solves the problem, but that's basically not what i want. So what do i have to do, to test the in app billing locally when i am debugging the app. is it even possible?


Solution

  • 1) Upload it to developer console and wait 2-3h
    2) Download this app from play store 3) Connect app with android studio (only OPEN the source code)
    4) In android studio select "attach to debugger"