Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App rejected because of Google Pay

I wanted to submit my app for the beta in the Google Developer Console, but it got rejected. The mail Google send me said, the reason is an incorrect use of Google Pay. The thing is, I dont use Google Pay in my App at all. Also when searching my manifest for the line, Google said I should remove in my App when dont want to use Google Pay (

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

), I couldnt find anything. I also dont want to sell any In-App pruchases and did say so in the Developement Console, the app is completely for free.

The build.gradle of the Module is:

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'
}
like image 888
Luca Thiede Avatar asked Apr 17 '16 18:04

Luca Thiede


1 Answers

I have finally found the issue. If you are using google play from gradle as like below :

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

Then your debug and release manifest will have Android pay code as well It will auto include inapp purchase meta as well.

So you will need to select individual for each google service.

So if you are using GCM push notification, You gradle should be like

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

If you use google analytics then gardle will be

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

I have checked released and debug menifest after made this change.

Thanks

like image 71
Mayuri Ruparel Avatar answered Oct 03 '22 18:10

Mayuri Ruparel