gpm.unity icon indicating copy to clipboard operation
gpm.unity copied to clipboard

WebView Error Unity AndroidJavaException: java.lang.NoClassDefFoundError

Open nice1378 opened this issue 2 years ago • 5 comments

Service

  • WebView

Version

unity 2020.03.20f

Summary

Error

Screenshots

If applicable, add screenshots to help explain your question.

Additional context

2022-04-19 12:55:35.267 27603 27656 Error Unity AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics; 2022-04-19 12:55:35.267 27603 27656 Error Unity java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics; 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.gpm.webview.GpmWebView.close(Unknown Source:2) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin.close(Unknown Source:2) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin.onAsyncMessage(Unknown Source:133) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin$1.onRequestMessageAsync(Unknown Source:2) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.gpm.communicator.internal.MessageReceiver.onRequestAsync(Unknown Source:38) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) 2022-04-19 12:55:35.267 27603 27656 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102) 2022-04-19 12:55:35.267 27603 27656 Error Unity at android.os.Looper.loop(Looper.java:223) 2022-04-19 12:55:35.267 27603 27656 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) 2022-04-19 12:55:35.267 27603 27656 Error Unity Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics

nice1378 avatar Apr 19 '22 04:04 nice1378

Hello. @nice1378 Thank you for using GPM.

It seems that you need to check the version of the Android SDK that you are currently using. If you are using Android SDK 28, please update to 30 and confirm.

How to update Android SDK 30.

  • Run command prompt as an Administrator.
  • cd "C:\Program Files\Unity\Hub\Editor\2020.3.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin"
  • sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.2"

If you have any questions, please feel free to contact us. Thanks.

taehyeon-nhn avatar Apr 20 '22 00:04 taehyeon-nhn

Hello. @nice1378 Thank you for using GPM.

I wonder if your problem has been solved. If you have any questions, please feel free to contact us.

Thanks.

taehyeon-nhn avatar Apr 25 '22 04:04 taehyeon-nhn

Hello

Updated as said Same problem occurred 2022-04-30 22:26:39.214 16916 16946 Error Unity AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics; 2022-04-30 22:26:39.214 16916 16946 Error Unity java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics; 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.gpm.webview.GpmWebView.close(Unknown Source:2) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin.close(Unknown Source:2) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin.onAsyncMessage(Unknown Source:133) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.gpm.webviewplugin.GpmWebViewPlugin$1.onRequestMessageAsync(Unknown Source:2) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.gpm.communicator.internal.MessageReceiver.onRequestAsync(Unknown Source:38) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) 2022-04-30 22:26:39.214 16916 16946 Error Unity at android.os.Handler.dispatchMessage(Handler.java:102) 2022-04-30 22:26:39.214 16916 16946 Error Unity at android.os.Looper.loop(Looper.java:223) 2022-04-30 22:26:39.214 16916 16946 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) 2022-04-30 22:26:39.214 16916 16946 Error Unity Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics 2022-04-30 22:26:39.214 16916 16946 Error Unity ... 11 more 2022-04-30 22:26:39.214 16916 16946 Error Unity at Unit

nice1378 avatar Apr 30 '22 13:04 nice1378

Hello. @nice1378

We need more detailed information.

If Android SDK 30 is installed, GPM WebView build should proceed normally. Please remove the Library folder of project and rebuild it.

If you have proceeded with the Gradle setting, please remove it and rebuild it.

What settings have you changed in Player Settings and Preferences?

Thanks.

taehyeon-nhn avatar May 02 '22 00:05 taehyeon-nhn

Hello. @nice1378

I wonder if your problem has been solved. If you have any questions, please feel free to contact us.

Thank you.

taehyeon-nhn avatar Jun 29 '22 02:06 taehyeon-nhn

Hello. @nice1378 Close this issue.

If you have any questions, please feel free to contact us. Thank you.

taehyeon-nhn avatar Aug 23 '22 01:08 taehyeon-nhn