Java google play支付流身份验证错误
嗨,我正在尝试测试我的inapp购买。我已经建立了一个商户帐户,并创建了一个alpha测试组。但是,当我尝试在我的设备上的应用程序上启动付款时,我收到以下错误。我已经在两个不同的设备上测试过了,我得到了相同的错误,尽管我可以下载其他应用程序 错误 需要进行身份验证。您需要登录到您的Google帐户 请帮忙Java google play支付流身份验证错误,java,android,google-play-services,google-play-developer-api,Java,Android,Google Play Services,Google Play Developer Api,嗨,我正在尝试测试我的inapp购买。我已经建立了一个商户帐户,并创建了一个alpha测试组。但是,当我尝试在我的设备上的应用程序上启动付款时,我收到以下错误。我已经在两个不同的设备上测试过了,我得到了相同的错误,尽管我可以下载其他应用程序 错误 需要进行身份验证。您需要登录到您的Google帐户 请帮忙 mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { public void onIabSet
mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {
public void onIabSetupFinished(IabResult result) {
Log.d(TAG, "Setup finished.");
if (!result.isSuccess()) {
// Oh noes, there was a problem.
complain("Problem setting up in-app billing: " + result);
return;
}
// Have we been disposed of in the meantime? If so, quit.
if (mHelper == null) return;
// IAB is fully set up. Now, let's get an inventory of stuff we own.
Log.d(TAG, "Setup successful. Querying inventory.");
try {
mHelper.queryInventoryAsync(mGotInventoryListener);
} catch (IabHelper.IabAsyncInProgressException e) {
complain("Error querying inventory. Another async operation in progress.");
}
}
});
//Querying for Items Available for Purchase
IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener() {
public void onQueryInventoryFinished(IabResult result, Inventory inventory) {
Purchase gasPurchase = inventory.getPurchase(SKU_GAS);
if (gasPurchase != null && verifyDeveloperPayload(gasPurchase)) {
Log.d(TAG, "We have gas. Consuming it.");
try {
mHelper.consumeAsync(inventory.getPurchase(SKU_GAS), mConsumeFinishedListener);
} catch (IabHelper.IabAsyncInProgressException e) {
complain("Error consuming gas. Another async operation in progress.");
}
return;
}
//updateUi();
//setWaitScreen(false);
Log.d(TAG, "Initial inventory query finished; enabling main UI.");
}
};
// User clicked the "Buy Gas" button
public void onBuyCoinButtonClicked(View arg0) {
Log.d(TAG, "Buy coin button clicked.");
Log.d(TAG, "Launching purchase flow for coins.");
String payload = "";
try {
mHelper.launchPurchaseFlow(this, SKU_GAS, RC_REQUEST,
mPurchaseFinishedListener, payload);
} catch (IabHelper.IabAsyncInProgressException e) {
complain("Error launching purchase flow. Another async operation in progress.");
//setWaitScreen(false);
}
}
我的源代码来自普通驱动器示例步骤1:检查基本64键 步骤2:检查您的Sku
static final String SKU_GAS = "android.test.purchased";
检查你的BASE64APP Id,但它不可用?嗨,谢谢BASE64APP Id不正确,我已经更正了它,但是我仍然收到错误。你能把错误日志放在这里吗!!??当我在应用程序内对话框中收到您正在接收的错误时,logcat中没有错误??