Google In-App Billing, Illegalargumentexception: Service Intent Must Be Explicit, After Upgrading to Android L Dev Preview

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

I had the same problem and explicitly setting the package solved it. Similar to Aleksey's answer, but simpler:

Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
// This is the key line that fixed everything for me
intent.setPackage("com.android.vending");

getContext().bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);

Android 5.0 (L) Service Intent must be explicit in Google analytics

Migration from Google Analytics v2 to v3 solve the problem for me.

Service Intent must be explicit - Google Analytics

Lollipop enforces a security restriction that you cannot call startService(), stopService() or bindService() with implicit Intents. In order for this to work on Lollipop, update your code to specify the ComponentName in the Intent.



Related Topics



Leave a reply



Submit