gpt4 book ai didi

android - Aws amplify cli - awsconfiguration.json 缺失

转载 作者:行者123 更新时间:2023-11-29 02:25:14 25 4
gpt4 key购买 nike

我按照基本教程将 aws 服务添加到来自 here 的 android 应用程序

我注意到在 amplify init 命令 awsconfiguration.json 之后不是在 res/raw 中生成的,尽管它认识到它是 android 项目并经历了所有步骤。我没有看到我错过了什么,这应该很简单。

最佳答案

在运行 amplify init 之后,您必须运行 amplify push

amplify push 会将 awsconfiguration.json 放在 res\raw 文件夹中。

Your project has been successfully initialized and connected to the cloud!

Some next steps: "amplify status" will show you what you've added already and if it's locally configured or deployed "amplify add" will allow you to add features like user login or a backend API "amplify push" will build all your local backend resources and provision it in the cloud "amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud

Pro tip: Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything

https://aws-amplify.github.io/docs/android/start?ref=amplify-android-btn

关于android - Aws amplify cli - awsconfiguration.json 缺失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52659514/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com