2016-04-09 4 views
1

'da kullanılmadı. Google uygulama komut dosyalarında aşağıdaki hatayı alıyorum. Kodum biraz önce çalışıyordu, ama başka bir bilgisayara geçtiğimde her şeyi kırdı.Uygulama Komut Dosyaları 403 Proje hatası

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 
{ 
    "code" : 403, 
    "errors" : [ { 
    "domain" : "global", 
    "message" : "Google Apps Script Execution API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/script/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", 
    "reason" : "forbidden" 
    } ], 
    "message" : "Google Apps Script Execution API has not been used in project 608941808256 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/script/overview?project=608941808256 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", 
    "status" : "PERMISSION_DENIED" 
} 

Google E-Tabloları içine bazı verileri kaydeder benim komut dosyası erişmeye çalışıyor: Şimdi aşağıdaki hatayı gösteren neden hiçbir fikrim yok. Bu proje numarası bana ait değil. Nereden geldiği veya neyin ait olduğu hakkında hiçbir fikrim yok.

Bu hatanın ne anlama geldiğini bilen var mı? Daha fazlası için bilgi bana bildirin ve bunu

EDIT sağlayabilir: Ben sorunun ne

. Android kodumda Uygulama Adını belirlerken yazım hatası yaşadım. Bunu düzeltdikten sonra doğru projeye doğru bir şekilde bağlanıyordu ve her şey tekrar çalışıyordu

cevap

0

Bu özelliği kullanmaya izin vermek için API'yı etkinleştirmeniz gerekir. Google birkaç kez izin verir, ancak daha sonra engellenir. Burada göz atın: https://developers.google.com/drive/v3/web/enable-sdk

+0

Teşekkür, ama bu sorun değildi. Eğer sorumu okursanız, benim olmayan başka bir projeyle bağlantı kurduğumu söyledim. Projemde API etkin. Sorunumu çözdüm de ... Android kodumda Uygulama Adında bir tür vardı. Aynı yazım hatası kullanmadan önce nasıl çalıştığını bilmiyorum – Matthew

1

Tamam, app iki farklı tatlar ekleyerek, bu çözüm buldu: cevap için

productFlavors { 
    prod { 
     applicationId "tld.domain.appname" 
    } 
    demo { 
     applicationId "tld.domain.appnamedebug" 
    } 
}