应用因 Google 支付而被拒绝
App rejected because of Google Pay
我想在 Google Developer Console 中提交我的测试版应用,但被拒绝了。 Google 发给我的邮件说,原因是 Google Pay 的使用不正确。问题是,我根本不在我的应用程序中使用 Google Pay。此外,在我的清单中搜索该行时,Google 说我应该在不想使用 Google Pay 时在我的应用程序中删除(
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>
), 我找不到任何东西。
我也不想出售任何应用内购买,并且在 Developement Console 中也说过,该应用是完全免费的。
模块的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'
}
我终于找到问题了。如果您使用 google 从 gradle 播放,如下所示:
compile 'com.google.android.gms:play-services:8.4.0'
然后你的调试和发布清单也会有 Android 支付代码它也会自动包含应用内购买元数据。
因此,您将需要 select 个人为每个 google 服务。
因此,如果您使用 GCM 推送通知,
你 gradle 应该像
compile "com.google.android.gms:play-services-gcm:8.4.0"
如果您使用 google 分析,那么 gardle 将是
compile 'com.google.android.gms:play-services-analytics:8.4.0'
进行此更改后,我检查了发布和调试清单。
谢谢
我想在 Google Developer Console 中提交我的测试版应用,但被拒绝了。 Google 发给我的邮件说,原因是 Google Pay 的使用不正确。问题是,我根本不在我的应用程序中使用 Google Pay。此外,在我的清单中搜索该行时,Google 说我应该在不想使用 Google Pay 时在我的应用程序中删除(
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>
), 我找不到任何东西。 我也不想出售任何应用内购买,并且在 Developement Console 中也说过,该应用是完全免费的。
模块的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'
}
我终于找到问题了。如果您使用 google 从 gradle 播放,如下所示:
compile 'com.google.android.gms:play-services:8.4.0'
然后你的调试和发布清单也会有 Android 支付代码它也会自动包含应用内购买元数据。
因此,您将需要 select 个人为每个 google 服务。
因此,如果您使用 GCM 推送通知, 你 gradle 应该像
compile "com.google.android.gms:play-services-gcm:8.4.0"
如果您使用 google 分析,那么 gardle 将是
compile 'com.google.android.gms:play-services-analytics:8.4.0'
进行此更改后,我检查了发布和调试清单。
谢谢