簡體   English   中英

如何修復 - “此版本的應用程序未配置市場結算”?

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

當我嘗試進行應用內購買時,我不斷收到此錯誤消息。 我已經上傳了此應用的先前版本,我可以成功進行應用內購買! 我看過清單文件,它是相同的(除了版本代碼) - 但我不能擺脫這個錯誤:(

是否有描述如何處理此問題的文檔? 我已經嘗試了在這個論壇中提出的所有補救措施,包括: - 確保我構建一個未簽名的apk並使用我的發布密鑰明確簽名(是的 - 我已經檢查以確保密鑰/密碼是准確的) - 確保正確的權限已啟用(自上次成功構建以來尚未更改此權限)

我錯過了一些微不足道的東西 - 但對於我的生活,我無法想象什么!

請幫忙!

這是我的清單文件如下:

<?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>

您說您已經導出了已簽名的應用程序(“發布”版本),因此我能想到的唯一其他可能性是您設備上的發布版本高於 “已發布”版本。

我有這個錯誤,並嘗試了其他帖子關於這個主題的各種建議,但都沒有奏效。

最后我發現它是由我的調試器使用與我上傳到Google Play的APK不同的密鑰引起的。

我使用的默認debug.keystore在一年內到期。

我不得不創建一個新的debug.keystore,它將在五十多年后到期(當我嘗試上傳時,這個限制來自Google Play中的錯誤消息)。

然后我構建了應用程序並從我的應用程序的bin文件夾(使用我的新debug.keystore構建)上傳了APK。

在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

您的keytool.exe路徑可能與我的不同,具體取決於安裝的內容。

PLease將應用程序導出為已簽名的應用程序,然后將其安裝在手機上,您將永遠不會再看到此錯誤。

您也可以參考鏈接:

應用程序錯誤:未為市場結算配置此版本的應用程序

我遇到了同樣的問題,不得不在市場上安裝應用程序。 由於某種原因,側載相同的APK無法正常工作。

而不是直接從您的IDe(Eclipse)運行應用程序

安裝最新的Apk文件哪個上傳到Android市場

我后來遇到同樣的問題是因為我正在運行我的應用程序的調試,未簽名版本。 在Eclipse中,當我導出並簽署我的應用程序並將其安裝在手機上時,我能夠使用我的應用程序內產品而不會看到此錯誤消息

這個問題發生在您將已簽名的應用程序上傳到市場(這是必要的),然后在設備上測試它。Debug .apk文件。 所以請避免這種情況將已簽名的.apk添加到您的設備,然后運行.apk,您將看到此.apk和應用內商品沒有問題

以下是我在使用In-App-Billing時觀察到的內容。

  • 當你上傳你的版本apk(無論Alpha / Beta / Production)時,IAB將無法正常工作,你必須等待幾個小時才能工作

  • 上傳新版本的apk(更高版本)也將是相同的。 你將不得不等待幾個小時才能最終發揮作用。 使用IAB的舊版本仍然可以使用。 我通常做的是上傳我的發布apk作為Beta,等待幾個小時,然后當它已經工作時,將apk推廣到生產。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM