Luc*_*ede 6 android google-play 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"/>
),我找不到任何东西.我也不想出售任何应用程序内购买并在开发控制台中这样说,该应用程序完全免费.
该模块的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'
}
Run Code Online (Sandbox Code Playgroud)
我终于找到了问题所在。如果您使用 gradle 中的 google play,如下所示:
compile 'com.google.android.gms:play-services:8.4.0'
Run Code Online (Sandbox Code Playgroud)
然后,您的调试和发布清单也将包含 Android 付费代码,它也会自动包含应用内购买元数据。
因此,您需要为每个谷歌服务选择单独的。
所以如果你使用 GCM 推送通知,你的 gradle 应该像
compile "com.google.android.gms:play-services-gcm:8.4.0"
Run Code Online (Sandbox Code Playgroud)
如果您使用谷歌分析,那么 gardle 将是
compile 'com.google.android.gms:play-services-analytics:8.4.0'
Run Code Online (Sandbox Code Playgroud)
进行此更改后,我检查了发布和调试菜单。
谢谢
| 归档时间: |
|
| 查看次数: |
719 次 |
| 最近记录: |