繁体   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