小编das*_*rus的帖子

无法在 Android Studio 中初始化 AWS Amplify for Android 应用程序?

我正在使用 AWS 和 Android Studio 为大学制作 Android 应用程序。我一直试图通过https://docs.amplify.aws/start/q/integration/android弄清楚它是如何工作的,但我似乎无法让它在最后一部分中工作,即将其连接到云端。当我运行该应用程序时,我总是收到以下错误:

\n
    AmplifyException {message=Failed to parse configuration JSON for AWS API Plugin, cause=AmplifyException {message=Failed to parse configuration, missing required key: endpoint, cause=null, recoverySuggestion=Sorry, we don\'t have a suggested fix for this error yet.}, recoverySuggestion=Check amplifyconfiguration.json to make sure the AWS API configuration section hasn\'t been wrongly modified.}\n        at com.amplifyframework.api.aws.AWSApiPluginConfigurationReader.parseConfigurationJson(AWSApiPluginConfigurationReader.java:97)\n        at com.amplifyframework.api.aws.AWSApiPluginConfigurationReader.readFrom(AWSApiPluginConfigurationReader.java:56)\n        at com.amplifyframework.api.aws.AWSApiPlugin.configure(AWSApiPlugin.java:127)\n        at com.amplifyframework.core.category.Category.configure(Category.java:86)\n        at com.amplifyframework.core.Amplify.configure(Amplify.java:153)\n        at com.amplifyframework.core.Amplify.configure(Amplify.java:120)\n        at com.example.todo.MyAmplifyApplication.onCreate(MyAmplifyApplication.java:18)\n        at android.app.Instrumentation.callApplicationOnCreate(Unknown Source:0)\n        at android.app.ActivityThread.handleBindApplication(Unknown Source:1209)\n        at android.app.ActivityThread.access$1400(Unknown Source:0)\n        at …
Run Code Online (Sandbox Code Playgroud)

android amazon-web-services android-studio aws-amplify

4
推荐指数
1
解决办法
5641
查看次数