簡體   English   中英

無法在 Google 助理中創建應用中使用的應用操作的預覽

[英]Unable to create preview of the app actions used in the app in google assistant

我在 res/xml 中添加了快捷方式.xml 並添加了

<meta-data
   android:name="android.app.shortcuts"
   android:resource="@xml/shortcuts" />

在 AndroidManifest.xml 中,還在播放控制台內部測試中上傳了簽名的捆綁文件。

但是我在使用 android 工作室中的谷歌助手應用程序操作測試工具創建預覽時遇到以下錯誤

Google Assistant plugin v2.3.0
                Preview Creation Error
                
                Status Code: 400
                Message: Precondition check failed.
                
                - Please sign in to Play Console (https://play.google.com/apps/publish) and check if you have accepted the latest Terms of Service (ToS), and the Gmail/G-Suite account has the authorization to modify the app with package name 'uninitialized.application.id'.

讀取的錯誤消息部分

modify the app with package name 'uninitialized.application.id'

似乎特別奇怪。 有幾件事情我會確定:

  • 確保您的app/build.gradle在 defaultConfig 部分中具有正確的 applicationId,並且您在其他地方使用此 Id。
  • 確保那是您上傳的版本。
  • 確保您用於 Play 商店的帳戶與您用於測試工具的帳戶相同。
  • 此問題表明可能已在合並清單中分配和設置了默認 applicationId,並且一旦在app/build.gradle中正確設置它,您就可以重建整個項目

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM