#Caught in a catch-22 (

1 messages · Page 1 of 1 (latest)

ashen bloom
#

Hey, I try making an Android build but it fails saying:

***Exception: [Essential Kit : Configuration Incomplete] [Required] Billing feature needs Public Key to be set in EssentialKit Settings inspector ***

The problem is, in Google Play Store console, it won't let me set up billing without uploading a build that has billing enabled! It says:

To add in-app products, you need to add the BILLING permission to your APK

That means I can't get the key without a build, but I can't get a build without a key. What's your advice?

worthy eagle
#

Ah! Thats a very real problem. As I have my test app already uploaded, I didn't face this issue.
May be I need to take a step back about billing config and just throw an error instead of failing the build.

#

Please do one thing to avoid it.
Just place a placeholder text in public key and make the apk, upload the apk, get the correct public key and proceed.

#

Sorry that I didn't think about this. I wanted to make build fail if there is a config missing as its difficult to find the issue at runtime - But I see this should be exempted.

#

I fixed it in new version. Now it throws error only but not halt the build to avoid this edge case.
Thanks @ashen bloom for letting me know.

ashen bloom
#

I'll try the above. 🙂

ashen bloom
#

The placeholder approach seems to work (no exception preventing build).

Next I'll test if this remains true in Cloud Build too.

worthy eagle
#

Cool!