我試圖在Developer Console中註冊Google Proximity API
。我指的是Google Github Link。無法在Google Developer Console中註冊Proximity API
當前狀態:我已經從樣本項目Google Github Repository開始。我使用項目的軟件包名稱和使用keytool實用程序的SHA1創建了android key和OAuth Client ID。我使用的是谷歌文檔中提供的advertisedId
。
在那裏我卡住了:每當我試圖測試在谷歌API Explorer中的API它拋出一個錯誤The API Key and the authentication credential are from different projects.
請求:
POST https://proximitybeacon.googleapis.com/v1beta1/beacons:register?fields=advertisedId%2Cstatus&key=my_android_api_key
{
"advertisedId":
{
"id": "Fr4Z98nSoW0hgAAAAAAAAg==",
"type": "EDDYSTONE"
},
"status": "ACTIVE"
}
響應:
400 OK
{
"error":
{
"code": 400,
"message": "The API Key and the authentication credential are from different projects.",
"status": "INVALID_ARGUMENT"
}
}
我已經仔細檢查過所有的軟件包名稱。他們來自我從Google repository下載的同一個項目。
任何線索都會有所幫助。