无法将新的APK文件上传到Android Play商店(Android付款许可)

use*_*864 3 android-pay android-permissions android-studio build.gradle

当我将新的.apk上传到Google Play商店时,它拒绝了我的提交,说:“您最近提交的应用违反了Google Play开发者计划政策,因此被拒绝。如果您提交了更新,则您的应用的先前版本仍然有效在Google Play上。”。

我收到一封邮件,指出:

我们检测到您最近上传的至少一个APK版本未正确使用Android Pay。在您提交的文件中包含APK版本14可能会导致您的应用违反我们的付款政策而被拒绝。

如果您想在应用中使用Android Pay,请按照以下步骤操作:

Remove any digital content from your app. To use Android Pay, your app must only sell physical goods or services.
Make sure your app is compliant with all policies listed in the Developer Program Policies. Remember that additional enforcement could occur if there are further policy issues with your apps.
Sign in to your Developer Console and submit the app. Make sure to increment the version number of the APK.
Run Code Online (Sandbox Code Playgroud)

如果您想在应用中使用其他付款方式,请按照以下步骤从清单中删除Android Pay:

Remove <meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/> from your manifest.
Sign in to your Developer Console and submit the app. Make sure to increment the version number of the APK.
Run Code Online (Sandbox Code Playgroud)

政策问题:Android Pay或Google Play应用内结算服务的其他替代付款机制仅适用于以下情况:

Android Pay
    For physical goods or services, such as movie tickets.

Other alternative payment mechanisms to Google Play’s in-app billing service
    For physical goods or services, such as movie tickets, or a publication where the price also includes a hard copy subscription.
    For digital goods that may be downloaded to devices and used outside of the app, such as songs that can be played on other music players.
    Donations to 527 designated tax exempt organizations are also permitted.
Run Code Online (Sandbox Code Playgroud)

如果您查看了该政策,并且认为此拒绝可能有误,请与我们的政策支持小组联系。我的一位同事将在2个工作日内与您联系。

感谢您对Google Play的支持!

这是我的清单(已更新)

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.altergyan.appname" android:installLocation="auto" android:versionCode="15" android:versionName="@string/version">
        <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="17" />
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="com.android.vending.BILLING" />
        <uses-permission android:name="android.permission.STORAGE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <application
        android:name="com.altergyan.appname.Class_10"
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:theme="@style/CustomActionBarTheme">
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_4"
            android:label="Category"
            android:parentActivityName="com.altergyan.appname.Class_20"
            android:windowSoftInputMode="stateHidden" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_20"
            android:label="@string/app_name"
            android:launchMode="singleTask" >
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_9"
            android:label="@string/title_activity_info"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_23"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            />
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_5"
            android:label="@string/favourites"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_22"
            android:label="@string/title_activity_settings">
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_13"
            android:label="@string/title_activity_agquizclass"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_15"
            android:label="@string/title_activity_agquizmap"
            android:parentActivityName="com.altergyan.appname.Class_13" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_13" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_17"
            android:label="@string/title_activity_quiz_play"
            android:parentActivityName="com.altergyan.appname.Class_15" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_15" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_16"
            android:label="@string/title_activity_quiz_options"
            android:parentActivityName="com.altergyan.appname.Class_15" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_15" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_19"
            android:label="@string/title_activity_record_phrase"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_7"
            android:label="@string/title_activity_flash_cards"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_2"
            android:label="@string/title_activity_alphabet"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_3"
            android:label="@string/title_activity_alphabet"
            android:parentActivityName="com.altergyan.appname.Class_20" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_20" />
        </activity>
        <activity
            android:screenOrientation="portrait"
            android:name="com.altergyan.appname.Class_6"
            android:label="@string/title_activity_flash_cards"
            android:parentActivityName="com.altergyan.appname.Class_7" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.altergyan.appname.Class_7" />
        </activity>
        <activity
            android:name="com.flurry.android.FlurryFullscreenTakeoverActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
        </activity>
    </application>
</manifest>
Run Code Online (Sandbox Code Playgroud)

我没有使用任何与Android Pay相关的代码或功能。

我写信给Google,但得到的答复与第一封邮件中提到的相同:

感谢您与Google Play小组联系。

您的应用已标记为Android Pay,因为您已在应用清单中包括了Android Pay声明:

请在清单中不包含此元素的情况下创建新的应用程序构建版本,并且不会再将您标记为审查对象

如果您还有其他问题或疑虑,请告诉我们。

我在这里浏览 了这篇文章:无法将新的APK文件上传到Android Play商店(谷歌付款),其中提到:“如果您不使用它,则必须在gradle构建文件中排除谷歌付款。” 但是我该怎么做?

这是我的gradle构建文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "xyz"
        minSdkVersion 16
         targetSdkVersion 17
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles 'proguard-android.txt'
        }
    }
}
dependencies { 
   compile 'com.android.support:appcompat-v7:19.1.0'
   compile files('libs/acra-4.5.0.jar')
   //compile files('libs/android-support-v13.jar')
   compile files('libs/FlurryAds-5.3.0.jar')
   compile files('libs/FlurryAnalytics-5.3.0.jar')
   compile files('libs/flurryAndroidDFPandAdMobMediationAdapter-5.0.0.r1.jar')
   compile 'com.android.support:support-v4:22.2.0'
   compile 'com.google.android.gms:play-services:7.5.0'
}
Run Code Online (Sandbox Code Playgroud)

Zaf*_*fer 5

而不是像下面那样实现所有播放服务:

dependencies {
   compile 'com.google.android.gms:play-services:7.5.0'
}
Run Code Online (Sandbox Code Playgroud)

仅使用以下服务。

dependencies {
   compile 'com.google.android.gms:play-services-ads:7.5.0'
   compile 'com.google.android.gms:play-services-maps:7.5.0'
}
Run Code Online (Sandbox Code Playgroud)