我曾使用Visual Studio的臨時分發將我的.aab檔案上傳到Google Play Console,之前用Xamarin構建的Android應用沒有問題。然而,每當我試圖從Visual Studio中使用Google Play Signing時,就會失敗。我已經在Google Developer Console中創建了客戶端ID。我使用了來自發布指紋的客戶端ID,但每當我試圖用它簽名時,我都會收到錯誤:
Google Play Store: the client ID from the release fingerprint.
Google Play Store。授權 Error: "invalid_client", Description: "Unauthorized", Uri:""
我看到的一個問題是,Visual Studio 要求與客戶 ID 一起提供一個 "客戶秘密"。然而,我沒有辦法使用Google Developer Console生成客戶秘密,只有客戶ID。我已經嘗試從開發者控制臺下載客戶秘密json檔案,但帶有秘密的實際行似乎不見了。
我怎樣才能使其正常作業呢?
uj5u.com熱心網友回復:
發現在Visual Studio中不可能使用這個功能,這里是MSFT的答案:
正如OAuth檔案所描述的,client_secret不適用于注冊為Android的客戶端的請求。 來自注冊為 Android、iOS 或 Chrome 的客戶端的請求。 應用程式的請求。因此,當我們將 "應用程式型別 "選擇為 "Android "時 選項時,將不會有client_secret。
Xamarin的發布檔案已經很久沒有更新了。 并且不適用于當前的發布步驟。要發布 Android應用程式,請將apk上傳到google play store。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/317282.html
標籤:
