Android LVL: failed to bind to service

I try to run LVL in my application, but I get this error while debugging on my phone:

ERROR / LicenseChecker (29924): Failed to bind to the service.

I also tried on the emulator, and I have the same error, so I decided to research on LicenseChecker.java, and I changed:

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

in

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

but the same problem arises.

I am testing SDK 8, any idea how to solve this problem?

Thank you in advance

+4
source share

Source: https://habr.com/ru/post/1333354/


All Articles