05/15/2024 15:19:45

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.

Image description

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:

  1. 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.

Image description

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

  1. 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.



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""