Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L

2016. 8. 31. 13:21Programing/Debugging



[Before]

        bindService(new Intent("com.android.vending.billing.InAppBillingService.BIND"), mServiceConn, Context.BIND_AUTO_CREATE);


[After]

        Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND");

        intent.setPackage("com.android.vending");

        bindService(intent, mServiceConn, Context.BIND_AUTO_CREATE);