LicenseChecker is slow in emulator

2019-07-17 15:57发布

问题:

When the emulator hits the line below it takes 10 seconds + to complete. Does anyone else have this problem?

mChecker = new LicenseChecker( this, new ServerManagedPolicy(this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY);

回答1:

I wound up putting the initial call to the setup into a background task. whenever its finished then it will go on and check the license.