I get the following error when trying to check the license of yn app:
java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.android.vending.licensing.ILicensingService }
This happens in this code:
Context AppContext=context;
String packageName=AppContext.getPackageName();
mLicenseCheckerCallback = new LicenseCheckerCallbackNew();
String deviceId = Secure.getString(AppContext.getContentResolver(),
Secure.ANDROID_ID);
LicenseChecker mChecker;
try{
if(bstrict){
mChecker = new LicenseChecker(context, new StrictPolicy(),BASE64_PUBLIC_KEY);
}else{
mChecker = new LicenseChecker(context, new ServerManagedPolicy(AppContext, new AESObfuscator(SALT, packageName, deviceId)),BASE64_PUBLIC_KEY);
}
mChecker.checkAccess(mLicenseCheckerCallback); <--------- Error
}catch(Exception e){
sendBackLicenseCheck("ApplicationError",0);
}
All my values are filled correct : packageName, SALT, BASE64_PUBLIC_KEY, deviceId
My dependencies in gradle :
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support.test.espresso:espresso-core:2.2.2'
compile 'com.android.support:multidex:1.0.2'
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support:design:27.0.1'
testCompile 'junit:junit:4.12'
compile files('libs/lvl.jar')
compile files('libs/google-play-services.jar')
compile 'com.facebook.android:facebook-android-sdk:4.29.0'
compile files('libs/GoogleConversionTrackingSdk-2.2.4.jar')
}
This worked in the past. I have no clue, so I am asking here. Can someone help ?