1

我有一个使用 Amplify Auth 的测试 Android 应用程序。一切都按预期工作。

然后我尝试更新 Auth 类别以添加用户池组和管理员查询 API。运行推送时,构建挂起在“正在创建 API 模型...”所以我关闭了 Android Studio 并再次尝试,结果相同。

然后我删除了 Auth(和用户池组、lambda 函数和 API)并再次添加了 Auth ( amplify add auth)。

以下是我为 API 选择的选项:

Do you want to add User Pool Groups? Yes
? Provide a name for your user pool group: admin
? Do you want to add another User Pool Group Yes
? Provide a name for your user pool group: users
? Do you want to add another User Pool Group No
√ Sort the user pool groups in order of preference · admin, users
Do you want to add an admin queries API? Yes
? Do you want to restrict access to the admin queries API to a specific Group Yes
? Select the group to restrict access with: admin

运行 push 时,它再次挂起:

Creating API models...
/ Updating resources in the cloud. This may take a few minutes...

两个多小时后,我关闭了 Android Studio。

感谢解决此问题的任何帮助。谢谢。

4

0 回答 0