如何在Android应用中测试Google Actions?

问题描述 投票:0回答:1

使用 App action test tools 在Android Studio中测试Google Actions时,我得到了以下错误信息。

Preview Creation Error Status Code: 400 Message: Precondition check failed.
The requested Android app package name does not have an associated project
 in Play Console. Please create a draft in Play Console and upload an app 
with package name 'com.example.yadayada'.

如果我尝试 "上传一个带有packagename的应用程序...",我得到的错误是

Upload failed
You have uploaded an APK or Android App Bundle that contains an action schema 
document in the manifest file, but the action patterns are not yet allowed. 
If you participate in a beta program, you must obtain authorization 
for your developer account

好吧,但我在哪里可以做呢?

此外,我不需要发布一个应用程序,这只是一个草案,用来测试未来可能的Slices的实现,文档中说可以通过Android Studio插件来实现。

android actions-on-google google-play-console app-actions
1个回答
1
投票

好了,知道了。提示 此处

在开发者控制台创建一个新的应用程序 动作,并在测试应用程序中使用它的包名。 动作。您可以使用您已经在Console中注册的任何软件包名称。

android {
    defaultConfig {
        applicationId "com.example.yadayada.playconsole"
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.