android-google-cloud-translate icon indicating copy to clipboard operation
android-google-cloud-translate copied to clipboard

Not working when API restrict to android app only!

Open milon87 opened this issue 7 years ago • 7 comments

working fine when no restriction is imposed in google console. If I set API to restrict then getting this error

Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "usageLimits", "message" : "The request did not specify any Android package name or signing-certificate fingerprint. Please ensure that the client is sending them or use the API Console to update your key restrictions.", "reason" : "ipRefererBlocked", "extendedHelp" : "https://console.developers.google.com/apis/credentials?project=778234082059" } ], "message" : "The request did not specify any Android package name or signing-certificate fingerprint. Please ensure that the client is sending them or use the API Console to update your key restrictions." }

milon87 avatar Apr 25 '17 12:04 milon87

Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android. Can you help me

muhammedakiftas avatar May 15 '17 13:05 muhammedakiftas

@milon87 you are right. If you are put a client restriction, you will be getting error

imosmanyilmaz avatar Aug 20 '17 15:08 imosmanyilmaz

@muhammedakiftas in app/build.gradle:

dependencies {
    compile ('com.google.cloud:google-cloud-translate:1.6.0') {
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
    }
}

hexicle avatar Sep 22 '17 06:09 hexicle

@milon87 i have that error too, so my key restriction is updated to API console but too same result. Anybody can help me?

tobujin avatar Sep 23 '18 07:09 tobujin

@milon87 i have that error too, so my key restriction is updated to API console but too same result. Anybody can help me?

tobujin avatar Sep 23 '18 07:09 tobujin

@milon87 i have that error too, so my key restriction is updated to API console but too same result. Anybody can help me?

tobujin avatar Sep 23 '18 07:09 tobujin

@milon87 i have that error too, so my key restriction is updated to API console but too same result. Anybody can help me?

tobujin avatar Sep 23 '18 07:09 tobujin