我正在通过Google进行AWS登录。我正在跟踪此链接https://github.com/patw0929/react-native-cognito-login-example,但是我遇到了AWS问题。我在链接中添加了aws-sdk-react-native-core的库,但是运行该应用时出现错误。
java:45: error: method does not override or implement a method from a supertype
@Override
^
Note: C:\Users\krishna21\Awsslogin\node_modules\aws-sdk-react-native-core\android\src\main\java\com\amazonaws\reactnative\core\BackgroundRunner.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':aws-sdk-react-native-core:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
我手动添加了aws-sdk-react-native-core。
答案 0 :(得分:0)
约翰, 1.首先,您正在使用的库较旧,请尝试使用AWS Amplify,该库的功能要优越得多,并且已经过安全性和错误测试。 2.在AWS联合登录中,可以通过两种方式完成,一种使用Cognito User。 池以及使用Cognito身份池。我希望你正在使用 Cognito身份池。 3.请在“编辑身份池”->“身份验证提供者”->“ Google+”中添加Google客户端ID。 4.将您要在Google Developer中访问的域列入白名单 帐户。
完整的文献资料在这里https://itnext.io/google-sign-in-using-aws-amplify-and-amazon-cognito-69cc3bf219ad