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 Intent
s. In order for this to work on Lollipop, update your code to specify the ComponentName
in the Intent
.
Related Topics
How to Add a Badge to an Application Icon in Android
Listview with Clickable/Editable Widget
Android Studio Gradle Configuration with Name 'Default' Not Found
"No Such File or Directory" Trying to Execute Linux Binary on Android Device
Android Ndk: Getting the Backtrace
How to Get the Sender of an Intent
How to Create and Read Log on Android Devices
Android Log.V(), Log.D(), Log.I(), Log.W(), Log.E() - When to Use Each One
How to View Androidmanifest.Xml from APK File
Getrunningtasks Doesn't Work in Android L
Lock Screen Orientation (Android)
"Failed to Install the Following Android Sdk Packages as Some Licences Have Not Been Accepted" Error
Better Way to Format Currency Input Edittext