Search code examples
androidgoogle-drive-apiandroid-gradle-pluginbuild.gradleandroid-keystore

Google Drive API statusCode=SIGN_IN_REQUIRED


I have problem with Google Drive. After I'm clicking on dialog with email Im getting error:

statusCode=SIGN_IN_REQUIRED

I resolved this problem by adding in gradle

 debug {
            signingConfig signingConfigs.config
    }

signingConfigs {
    config {
        keyAlias '******'
        keyPassword '******'
        storeFile file('C:/Users/.android/debug.keystore')
        storePassword '******'
    }
}

But the question is it is possible to work without this file and this options in gradle?

I'm pushing this code to repository and tests are failed in case of missing debug.keystore file.

Code will be published and I'm not sure can also share this debug.keystore file?

I know the easiest is to add this file in to directory app and change the path.

But maybe someone know better solution?


Solution

  • I resolved this problem by adding in gradle

    debug {
                signingConfig signingConfigs.config
        }
    
    signingConfigs {
        config {
            keyAlias '******'
            keyPassword '******'
            storeFile file('C:/Users/.android/debug.keystore')
            storePassword '******'
        }
    }