Play Store build not working, BrowserView not found

Hi,
When building my game for the Play Store as a bundle, the login web will not pop up. Debugging it, I can see that there’s the following error:

04-24 16:00:20.945 2145 2193 E Unity : AndroidJavaException: java.lang.ClassNotFoundException: com.web3auth.unity.android.BrowserView
04-24 16:00:20.945 2145 2193 E Unity : java.lang.ClassNotFoundException: com.web3auth.unity.android.BrowserView
04-24 16:00:20.945 2145 2193 E Unity : at java.lang.Class.classForName(Native Method)
04-24 16:00:20.945 2145 2193 E Unity : at java.lang.Class.forName(Class.java:454)
04-24 16:00:20.945 2145 2193 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
04-24 16:00:20.945 2145 2193 E Unity : at com.unity3d.player.UnityPlayer.x(Unknown Source:0)
04-24 16:00:20.945 2145 2193 E Unity : at com.unity3d.player.UnityPlayer$C$a.handleMessage(Unknown Source:122)
04-24 16:00:20.945 2145 2193 E Unity : at android.os.Handler.dispatchMessage(Handler.java:102)
04-24 16:00:20.945 2145 2193 E Unity : at android.os.Looper.loopOnce(Looper.java:226)
04-24 16:00:20.945 2145 2193 E Unity : at android.os.Looper.loop(Looper.java:313)
04-24 16:00:20.945 2145 2193 E Unity : at com.unity3d.player.UnityPlayer$C.run(Unknown Source:24)
04-24 16:00:20.945 2145 2193 E Unity : Caused by: java.lang.ClassNotFoundException: com.web3auth.unity.android.BrowserView

Notice that this error doesn’t happen when building the apk and running it on my test device, but when publishing it in the Play Store it does.

Can you tell me what’s going on? Thanks.

Hi @pabloruiz55 , it seems like obfuscation issue in prod environment in your case as it works fine in local/testing environment. Try adding rule for not to obfuscate BrowserView class in proguard-rules.pro of your app.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.