Unityで一昨日まで問題なくコンパイルできていたアプリが
Unityのバージョンを上げたところ
下記エラーが出てコンパイルできなくなりました。
Unity2018.4.23f1 → Unity2019.4.0f1
やってみたこと)
ネットでググるとjdkをダウングレードすると解決するとあったので
試しにjdk14.0.1をアンインストールしてjdk13.0.2を新たにダウンロードして
インストールしました。環境変数も設定し直しました。
しかしまったく解消されません。他に解決方法知ってられる方みえましたら
教えてください。
環境)
PC: Windows10
Unity Hub2.3.2
Unity2019.4.0f1
言語:C#
Platform:Android
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) ... 5 more stderr[ Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 5 more ] stdout[ ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.SDKManager.UpdatePackagesList () (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.SDKManager.HighestVersionInstalled (UnityEditor.Android.SDKManager+Component tool) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKToolsDetector.GetVersion () (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector.Detect (System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Build completed with a result of 'Failed' in 11 seconds (10985 ms) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) UnityEditor.BuildPlayerWindow+BuildMethodException: 13 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <af78ad00a40d4f61b82afc6cafb0a416>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <af78ad00a40d4f61b82afc6cafb0a416>:0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
回答2件
あなたの回答
tips
プレビュー