pt1*_*123 3 android android-intent android-lvl android-5.0-lollipop
当运行Google在sdk/extras/google/play_licensing中提供的示例许可证检查应用程序时,它会在运行Lollipop(5.0)的模拟器(AVD)上崩溃(我没有运行5.0的手机).它在运行Kitkat的手机上运行良好.
在4.4 Kitkat上,它给出了一个警告
Implicit intents with startService are not safe: Intent { act=com.android.vending.licensing.ILicensingService }
android.content.ContextWrapper.bindService:538 com.google.android.vending.licensing.LicenseChecker.checkAccess:150 LicActivity.doCheck:126
Run Code Online (Sandbox Code Playgroud)
我不确定5.0他们是否已将其从警告移至完全爆炸错误.
我不知道如何将隐式intent调用转换为显式调用.它在LicenceChecker类中被调用
boolean bindResult = mContext
.bindService(
new Intent(
new String(
Base64.decode("HEX_TEXT"))),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);
Run Code Online (Sandbox Code Playgroud)
BASE 64解码为com.android.vending.licensing.ILicensingService
我刚收到错误消息不幸的是,许可证检查程序已停止.在对话框中.
它在logcat中显示此消息
java.lang.RuntimeException: Unable to instantiate application com.android.vending.VendingApplication: java.lang.ClassNotFoundException:
Didn't find class "com.android.vending.VendingApplication" on path: DexPathList[[zip file "/system/app/LicenseChecker/LicenseChecker.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
Run Code Online (Sandbox Code Playgroud)
有人报道了一段时间但仍然没有解决方案
添加
intent.setPackage("com.android.vending");
Run Code Online (Sandbox Code Playgroud)
你Intent保证,这是一个明确的意图所要求的是Android 5.0.
| 归档时间: |
|
| 查看次数: |
2892 次 |
| 最近记录: |