棒棒堂5.0样品许可检查应用程序崩溃的模拟器(AVD) [英] Lollipop 5.0 Sample License Checker App crashes on Emulator (AVD)
问题描述
当运行SDK /演员/谷歌/ play_licensing崩溃在模拟器(AVD)运行棒棒堂(5.0)(我没有一个手机上运行5.0),提供谷歌的样品许可检查应用程序。它工作正常,在手机上运行奇巧。
When running the the sample license check app provided by Google in sdk/extras/google/play_licensing it crashes on the Emulator(AVD) running Lollipop (5.0) (I don't have a phone running 5.0). It works fine on Phone running Kitkat.
在4.4奇巧它给出了一个警告
On 4.4 Kitkat it gives a warning the
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
我不知道5.0,他们已经搬到它从一个警告完全成熟的错误。
I am not sure 5.0 they have moved it from a warning to full blown error.
我不知道如何隐式调用的意图转化为明确的。 它被称为在LicenceChecker类
I don't know how to convert the implicit intent call to an explicit one. It's being called in the LicenceChecker class
boolean bindResult = mContext
.bindService(
new Intent(
new String(
Base64.decode("HEX_TEXT"))),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);
BASE 64日codeS到com.android.vending.licensing.ILicensingService
BASE 64 decodes into com.android.vending.licensing.ILicensingService
我刚刚收到一条错误信息不幸的是,许可证检查程序已经停止。在对话框中。
I just receive an error message Unfortunately, licence checker has stopped. in a dialog box.
这是显示在logcat中此消息
It is showing this message in 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]]
它的报道而回,但依然无解
It's been reported a while back but still no solution
HTTP://$c$c.google。 COM / P /安卓/问题/详细信息?ID = 61680
推荐答案
添加
intent.setPackage("com.android.vending");
你的意图
确保它是一个明确的意图所要求的的Android 5.0。
to your Intent
ensures that it is an explicit intent as required by Android 5.0.
这篇关于棒棒堂5.0样品许可检查应用程序崩溃的模拟器(AVD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!