Hi Everybody:
An app I published in December seems to be experiencing a Runtime error on Android 5.0 devices that is related to the “com.android.vending” permission used for Google Play licensing checks. The error was brought to my attention by Google Play’s QA testers, who are reviewing the app for inclusion in the “Google Play for Education” store. The details they’ve given are somewhat scarce, but it seems to only impact Android 5.0 devices - but I don’t have any Android 5 devices yet, so I can’t personally replicate it. It’s worth noting that this is the first time I’ve heard of this problem, so I’m hoping that some sort of bug in Corona SDK that can be fixed in a daily build.
I currently require the “com.android.vending.CHECK_LICENSE” permission in my build.settings and have a properly configured “license” table in my config.lua - I’ve done this for a number of Android apps, and this is the first time I’ve had any sort of issue. One potential problem in my code is that I don’t actually call license.verify() anywhere in my app - I somehow forgot to include a licensing check before publishing (whoops). So even though I’m properly configured to run a licensing check, I don’t do anything with that ability currently. However, that didn’t cause a problem in any other (non Android 5.0) devices in my testing, or since publishing. So I still think this might be an SDK bug.
Here is the Runtime Error that I was given via screenshot (pasted below):
RUNTIME ERROR: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/android/ndk/shell.lua:122:java.lang.IllegalArgumentException: Service Intent must be explicit: Intent {act=com.android.vending.licensing.ILicensingService}
As a short-term workaround, I think I’ll try removing all licensing-related code from my config.lua and build.settings to see if that fixes things (I wasn’t doing anything with it anyways), but I wanted to raise the issue in case it’s a bug that needs squashing. I can’t properly create a bug report since I don’t have an Android 5.0 device and therefore can’t truly reproduce the issue in the first place.
Has anybody else run into any problems with Google Play licensing and Android 5.0? Any chance somebody from CL can make more sense of that error code than I can? Thanks!
-Jason