如何在 Android 应用程序中测试 Google 操作?
How Can I test Google Actions in Android app?
在 Android Studio 中使用 App action test tools
测试 Google 操作,我遇到了错误
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'.
如果我尝试 "upload an app with 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 来完成插件。
好的,知道了。提示 here
在开发者控制台中创建一个新应用程序无需操作,然后使用
它在测试应用程序中的包名 with 操作。您可以使用您已经在控制台中注册的任何包名称
android {
defaultConfig {
applicationId "com.example.yadayada.playconsole"
}
}
您需要将此添加到清单文件中:
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
这在应用程序操作教程和此处进行了说明:https://developer.android.com/guide/topics/ui/shortcuts/creating-shortcuts#static
在 Android Studio 中使用 App action test tools
测试 Google 操作,我遇到了错误
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'.
如果我尝试 "upload an app with 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 来完成插件。
好的,知道了。提示 here
在开发者控制台中创建一个新应用程序无需操作,然后使用 它在测试应用程序中的包名 with 操作。您可以使用您已经在控制台中注册的任何包名称
android {
defaultConfig {
applicationId "com.example.yadayada.playconsole"
}
}
您需要将此添加到清单文件中:
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
这在应用程序操作教程和此处进行了说明:https://developer.android.com/guide/topics/ui/shortcuts/creating-shortcuts#static