0

我正在按照本教程将 App Actions 添加到 Android 项目。我已经完成的步骤:

  1. 为内部测试人员克隆项目、运行、构建和发布(没有添加任何实际测试人员,我只是在发布模式下从 Android Studio 运行应用程序)

  2. 实现了教程中所写的深度链接并检查它是否适用adb shell am start -a android.intent.action.VIEW -d "https://fit-actions.firebaseapp.com/start"

  3. 使用 New->XML->App Actions XML 文件创建 actions.xml 并粘贴教程中的代码,在 AndroidManifest.xml 中添加元数据

  4. 插入物理设备并打开 USB 调试,语言设置为英语(美国),检查 Google 助理是否正常工作并且还设置了英语(美国)语言

  5. 已安装 App Actions Test Tool v.3.5.4,创建预览(调用名称:“Fit Actions”,区域设置:“en-US”)

当我尝试运行 App Action 预览时,Google Assistant 会打开,我得到“抱歉,我找不到”。

我使用在我的 Google Play 控制台中设置的电子邮件和 Google Play 控制台中的 applicationId 和 build.gradle 匹配登录 Android Studio、我的物理设备和 Google 助理。

我检查了此清单此评论中的所有步骤。

在 adb logcat 我发现:

I/ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat=https://assistant.google.com/... flg=0x10000000 cmp=com.google.android.googlequicksearchbox/com.google.android.apps.gsa.deeplink.DeeplinkActivityEntrypoint mCallingUid=2000} from uid 2000 and from pid 12421

尝试在 Google Assistant 中输入“开始在 Fit Actions 中运行”会打开搜索结果,而不是应用。

如果您对可能出现的问题有任何想法,请告诉我。

编辑

本教程适用于另一台设备。将物理设备更改为另一个 - 我已经使用 google 电子邮件登录,但必须下载 Google Assistant 并将语言设置为 en-US。

4

0 回答 0