01/10/2025 10:53:00
Problem description
The real-name authentication page does not pop up normally after login or the WebView disappears quickly when it is opened, and an error like "Error inflating class android.support.v7.widget.RecyclerView" appears in the log.
Causes of the problem
This is caused by the move that the project uses AndroidX but doesn't refer to RecyclerView in the AndroidX library.
Solution
First confirm whether the project needs to use AndroidX:
- If needed:
Re-download the SDK package integration from GCloud SDK and check the AndroidX option under the corresponding version of engine. If you encounter any problems during the download process, please contact GCloud Human Services Guide.
Temporary solution
If the project itself is an AndroidX project, you can directly modify the msdk_webview_share_dlg.xml file
The file's location:
Unity: Plugins/Android/gcloudsdk-msdk-webview/res/layout
UE: MSDKWebView/Source/MSDKWebView/lib/Android/msdk-webview/res/layout
Modify android.support.v7.widget.RecyclerView
to androidx.recyclerview.widget.RecyclerView
- If not needed:
Remove the use of AndroidX in the project by yourself. The specific method for doing so can be found from the Internet.
All rights reserved.