Hold on. If you want to try In app purchases on Android there are a number of things you need to do:
- Create your app on Google Play. Fill out the Store Listing, Content Rating, Pricing & Distribution and most importantly In-app Products section.
- Upload a version of your app, signed with your release certificate as a Beta or Alpha test.
- Invite testers (in the APK section on Google Play)
- Each tester must click on the Opt-in URL to join the beta/alpha test (available in the APK section on Google Play, just below the list of invited testers)
- Publish your Beta/Alpha (no worries, it will only be visible and accessible by your testers, no one else)
These are the basic steps. Once you have those in place you can start doing local builds and rapidly deploy them to your device for testing. In order to test In-app purchases using local builds you need to make sure of the following:
- The locally built APK must be signed with the same release certificate as the APK you uploaded to Google Play
- The locally built APK must have the same package name as the APK you uploaded (as long as you don’t change the Package field in game.project this shouldn’t be an issue)
- The locally built APK must have the same version code as the APK you uploaded to Google Play
With all the above in mind it simply won’t work to download dmengine.apk from d.defold.com, install it and try to use In App Purchases on Android. dmengine.apk is not signed with the same cert, it doesn’t have the same package name and not the same version code.