我想在 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/