简体   繁体   English

如何修复 - “此版本的应用程序未配置市场结算”?

[英]How to fix - “This version of the application is not configured for Market Billing”?

I keep getting this error when I try to make an in-app purchase. 当我尝试进行应用内购买时,我不断收到此错误消息。 I have uploaded a previous version of this app where I was able to make in-app purchases successfully! 我已经上传了此应用的先前版本,我可以成功进行应用内购买! I have looked at the manifest file and it is identical (except for the version code) - but I cannot shake off this error :( 我看过清单文件,它是相同的(除了版本代码) - 但我不能摆脱这个错误:(

Is there a document that describes how to handle this? 是否有描述如何处理此问题的文档? I have tried all the remedies suggested in this forum, including: - making sure that I build an unsigned apk and explicitly sign it with my release key (yes - I have checked to make sure that the key/password is accurate) - making sure that the right permissions are enabled (havent changed this since the last successful build 我已经尝试了在这个论坛中提出的所有补救措施,包括: - 确保我构建一个未签名的apk并使用我的发布密钥明确签名(是的 - 我已经检查以确保密钥/密码是准确的) - 确保正确的权限已启用(自上次成功构建以来尚未更改此权限)

I am missing something trivial - but for the life of me, I cannot figure what! 我错过了一些微不足道的东西 - 但对于我的生活,我无法想象什么!

Please help! 请帮忙!

Here is my manifest file below: 这是我的清单文件如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.foo.bar"
    android:versionName="1.4" android:versionCode="18">

    <uses-sdk android:minSdkVersion="9" 
          android:targetSdkVersion="9" />

    <uses-permission android:name="android.permission.WAKE_LOCK" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.INTERNET" >
    </uses-permission>
    <uses-permission android:name="com.android.vending.BILLING" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <application
        android:debuggable="false"
        android:icon="@drawable/video"
        android:label="@string/app_name" >
        <activity android:name="com.inappbilling.InappActivity" />
        <activity
            android:configChanges="orientation"
            android:label="@string/app_name"
            android:name=".SplashActivity"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Favorites"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        </activity>
        <activity
            android:name=".PlayVideo"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        </activity>
        <activity
            android:name=".Featured"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        </activity>
        <activity
            android:name=".FacebookLike"
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
        </activity>

        <service android:name="com.inappbilling.BillingService" />

        <receiver android:name="com.inappbilling.BillingReceiver" >
            <intent-filter >
                <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
                <action android:name="com.android.vending.billing.RESPONSE_CODE" />
                <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
            </intent-filter>
        </receiver>
    </application>

</manifest>

您说您已经导出了已签名的应用程序(“发布”版本),因此我能想到的唯一其他可能性是您设备上的发布版本高于 “已发布”版本。

I had this error and tried various suggestions from other posts on this topic but none worked. 我有这个错误,并尝试了其他帖子关于这个主题的各种建议,但都没有奏效。

In the end I found that it was caused by my debugger using a different key to the APK I uploaded to Google Play. 最后我发现它是由我的调试器使用与我上传到Google Play的APK不同的密钥引起的。

I was using the default debug.keystore which expires within a year. 我使用的默认debug.keystore在一年内到期。

I had to create a new debug.keystore which expires in more than fifty years (this limit came form an error message in Google Play when I tried to upload it). 我不得不创建一个新的debug.keystore,它将在五十多年后到期(当我尝试上传时,这个限制来自Google Play中的错误消息)。

I then built the application and uploaded the APK from my application's bin folder (built with my new debug.keystore). 然后我构建了应用程序并从我的应用程序的bin文件夹(使用我的新debug.keystore构建)上传了APK。

On Windows 7 you can generate the new debug.keystore with this command (delete the existing debug.keystore first): 在Windows 7上,您可以使用此命令生成新的debug.keystore(首先删除现有的debug.keystore):

C:\\Users\\MyUserName\\.android>"C:\\Program Files\\Java\\jdk1.6.0\\bin"\\keytool.exe -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 21900

Your path to keytool.exe might differ from mine depending upon what is installed. 您的keytool.exe路径可能与我的不同,具体取决于安装的内容。

PLease export the app as signed application and then install it on the phone, you will never see this error in further. PLease将应用程序导出为已签名的应用程序,然后将其安装在手机上,您将永远不会再看到此错误。

You can refer the link also: 您也可以参考链接:

Application Error : This version of the application is not configured for Market Billing 应用程序错误:未为市场结算配置此版本的应用程序

I had the same problem and had to install the app from the market itself before it worked. 我遇到了同样的问题,不得不在市场上安装应用程序。 Sideloading the same APK didn't work for some reason. 由于某种原因,侧载相同的APK无法正常工作。

Instead of running application directly from your IDe ( Eclipse ) 而不是直接从您的IDe(Eclipse)运行应用程序

Install Latest Apk file Which is uploaded to Android market 安装最新的Apk文件哪个上传到Android市场

I face same problem later it was because I was running a debug, unsigned version of my app. 我后来遇到同样的问题是因为我正在运行我的应用程序的调试,未签名版本。 In Eclipse, when I exported and signed my application and installed it on the phone, then I was able to use my in-app products without seeing this error messag 在Eclipse中,当我导出并签署我的应用程序并将其安装在手机上时,我能够使用我的应用程序内产品而不会看到此错误消息

this issue occur wen you upload signed app to the market(which is necessary) and then test it on the device the Debug .apk file. 这个问题发生在您将已签名的应用程序上传到市场(这是必要的),然后在设备上测试它。Debug .apk文件。 so avoid this thing add the signed .apk to your device and then run the .apk you will see there is no issue with this .apk and in-app products 所以请避免这种情况将已签名的.apk添加到您的设备,然后运行.apk,您将看到此.apk和应用内商品没有问题

Here is what I have observed while using In-App-Billing. 以下是我在使用In-App-Billing时观察到的内容。

  • When you upload your release apk (regardless of Alpha/Beta/Production), IAB will not work right away, you will have to wait for a few hours before it can work 当你上传你的版本apk(无论Alpha / Beta / Production)时,IAB将无法正常工作,你必须等待几个小时才能工作

  • Uploading a new version of the apk (higher version) will also be the same. 上传新版本的apk(更高版本)也将是相同的。 You will have to wait for a few hours for it to eventually work. 你将不得不等待几个小时才能最终发挥作用。 The older version with IAB will still work though. 使用IAB的旧版本仍然可以使用。 What I usually do is to upload my release apk as Beta, wait a few hours, then when it is already working, promote the apk to production. 我通常做的是上传我的发布apk作为Beta,等待几个小时,然后当它已经工作时,将apk推广到生产。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序错误:未为市场结算配置此版本的应用程序 - Application Error : This version of the application is not configured for Market Billing InApp-此版本的应用程序未配置计费 - InApp - This version of application is not configured for billing 此版本的应用程序未配置为通过 Google Play 计费 - This version of the application is not configured for billing through Google Play TrivialDrive显示“此版本的应用程序未配置为通过...进行计费” - TrivialDrive showing “This version of the application is not configured for billing through …” 应用程序更新后,此版本的应用程序未配置为计费 - This version of the application is not configured for billing after app update 错误:此版本的应用程序未配置为通过Google Play结算 - Error: This version of the application is not configured for billing through Google Play 购买Android In App:未配置此版本的应用,以便通过Google Play计费 - Android In app purchase: This version of the application is not configured for billing through Google Play 从Android Studio运行时,“此版本的应用程序未配置为计费”错误 - “This version of the application is not configured for billing” error when run from Android Studio 应用内结算问题:“此版本的应用程序未配置为通过Google Play结算。 检查帮助中心。” - In-app billing issue: “This version of the application is not configured for Billing through Google Play. Check the help center..” 如何从1.82版升级Market Application? - How to upgrade the Market Application from version 1.82?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM