[英]Error while login into AWS through google in react native
我正在通過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。
John,1。首先,您正在使用的庫較舊,請嘗試使用AWS Amplify,該庫的功能要優越得多,並且已經過安全性和錯誤測試。 2.在AWS聯合登錄中,可以通過兩種方式完成,一種使用Cognito用戶池,也可以使用Cognito身份池。 我希望您正在使用Cognito身份池。 3.請在“編輯身份池”->“身份驗證提供程序”->“ Google+”中添加Google客戶端ID。4.將您要在Google Developer帳戶中訪問的域列入白名單。
完整的文檔在這里https://itnext.io/google-sign-in-using-aws-amplify-and-amazon-cognito-69cc3bf219ad
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.