4

I'm trying to run LVL on my app but I'm getting this error when debugging on my phone:

ERROR/LicenseChecker(29924): Could not bind to service.

I tried on emulator too and I'm getting the same error, so I decided investigate on LicenseChecker.java and I changed:

               boolean bindResult = mContext.bindService(
                    new Intent(ILicensingService.class.getName()),
                    this,  // ServiceConnection.
                    Context.BIND_AUTO_CREATE);

to:

                boolean bindResult = mContext.bindService(
                    new Intent("com.android.vending.licensing.ILicensingService"),
                    this,  // ServiceConnection.
                    Context.BIND_AUTO_CREATE);

but same problem occurs.

I'm testing with SDK 8, any idea how to solve this problem?

Thanks in advance

Nikhil
  • 16,194
  • 20
  • 64
  • 81
josh
  • 333
  • 1
  • 3
  • 8
  • Thanks for the hint with `new Intent("com.android.vending.licensing.ILicensingService")` :) – Martin L. Apr 08 '13 at 11:34
  • I just wanted to add on to what Martin said, that line is especially important if you refactor the licensing library. – iflp Sep 11 '15 at 10:06

0 Answers0