android - 应用因 Google Pay 而被拒绝

标签 android google-play google-pay

我想在 Google Developer Console 中提交我的测试版应用,但遭到拒绝。 Google 发给我的邮件说,原因是 Google Pay 使用不当。问题是,我根本不在我的应用程序中使用 Google Pay。此外,在我的 list 中搜索该行时,谷歌表示当我不想使用 Google Pay 时,我应该在我的应用程序中删除(

<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>

), 我找不到任何东西。 我也不想出售任何应用内购买,并且在 Developement Console 中也说过,该应用是完全免费的。

Module的build.gradle是:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 22
    buildToolsVersion "21.1.2"
    defaultConfig {
        applicationId 'com.myproject'
        minSdkVersion 14
        targetSdkVersion 22
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    productFlavors {
    }
}

dependencies {
    compile project(':copyoflibrary')
    compile project(':copyofHoloGraphLibrary')
    compile project(':multiStateToggleButton')
    compile 'com.android.support:support-v4:22.0.0'
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile "com.google.android.gms:play-services:7.5.+"
    compile files('libs/commons-lang3-3.3.2.jar')
    compile 'com.android.support:cardview-v7:22.0.+'
    compile 'com.pkmmte.view:circularimageview:1.1'
}

最佳答案

我终于找到问题了。如果您使用 gradle 中的 google play,如下所示:

compile 'com.google.android.gms:play-services:8.4.0'

然后您的调试和发布 list 也将包含 Android 支付代码,它也会自动包含应用内购买元数据。

因此您需要为每项 Google 服务单独选择。

因此,如果您使用 GCM 推送通知, 你的 gradle 应该是这样的

   compile "com.google.android.gms:play-services-gcm:8.4.0"

如果你使用谷歌分析,那么 gardle 将是

compile 'com.google.android.gms:play-services-analytics:8.4.0'

在进行此更改后,我检查了发布和调试 list 。

谢谢

关于android - 应用因 Google Pay 而被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36680683/

相关文章:

android - 如何过滤EditText的输入?

android - Google Play订阅的付款方式?

payment-gateway - ionic4 中的 GOOGLE PAY 支付集成

android - Android 启动画面的人行横道

android - 由 : java. lang.NoClassDefFoundError 引起:org/jetbrains/kotlin/annotation/plugin/ide/AnnotationBasedPluginModelBuilderService

android - 您如何在 Android 上唯一标识用户?

android - 发布安卓应用

google-pay - 要在测试环境中直接使用支付标记化方法测试 googlepay,需要 PCI DSS?

java - 如何从 Activity 2的按钮更改 Activity 1的actionBar标题

android - Google Play 统计数据 "Active users"显示 2014 年 6 月急剧下降?