unityのエディターバージョンを変えてからandroidビルドをしようとしたがエラーが出る
変更前のバージョン 2020.3.32f1
変更後のバージョン 2021.3.2f1
unityのエディターバージョンを変える際注意が必要なことを知らずに変えてしまいまし
バックアップなど一切していません
質問
エラー(*3)の解決策を教えていただきたいです。
経緯
unityのエディターバージョンをなんとなく変える
起動してみるとエラーがたくさん出てくる
元のバージョンに戻して起動してみるがエラーがでてくる
libraryを消してから新しいバージョンで起動する
エラーが一旦なくなったのでビルドしてみる
エラー(*1)が出てきたがProject Settings>PlayerからターゲットAPIレベルをlevel32にしたら表示されなくなる
エラー(*1)解決後再びビルドする
エラー(*2)が出てきたがProject Settings>Burst AOT Settings > Enable Burst CompilationをOFFにしたら表示されなくなる
エラー(*2)解決後再びビルドする
エラー(*3)で行き詰る←今ここ
(*1)
UnityException: Target Android SDK not installed
Android SDK does not include your Target SDK of 28.
Please use the Android SDK Manager to install your target SDK version. Restart Unity after SDK installation for the changes to take effect.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
(*2)(全体から一部抜粋)
注意_1)
Unable to find player assembly: C:\Users\Desktop\unity game\2d game\Temp\StagingArea\Data\Managed\UnityEngine.TestRunner.dll
UnityEngine.Debug:LogWarning (object)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.unity.burst@1.6.5/Editor/BurstAotCompiler.cs:350)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.unity.burst@1.6.5/Editor/BurstAotCompiler.cs:208)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
エラー_1)System.UnauthorizedAccessException: �p�X 'C:\Users\Desktop\unity game\2d game\Temp\StagingArea\tempburstlibs\arm64-v8a\lib_burst_generated.txt' �ւ̃A�N�Z�X�����ۂ���܂����B
エラー_2) �ꏊ System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
エラー_3) �ꏊ System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
(*3)
太字のところのみ違うエラーが40個以上表示されました。エラーに表示されたフォルダを見てみましたが「FeatureCheckList」というファイル以外何もありませんでした。
Building Library\Bee\artifacts\Android\Features\ UnityEngine.VFXModule-FeaturesChecked.txt failed with output:
System.UnauthorizedAccessException: Access to the path 'C:\Users\Desktop\unity game\2d game\Library\Bee\artifacts\Android\Features\ _UnityEngine.VFXModule-FeaturesChecked.txt' is denied.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at System.IO.File.WriteAllText(String path, String contents)
at NiceIO.NPath.SystemIOFileSystem.File_WriteAllText(NPath path, String contents)
at NiceIO.NPath.WindowsFileSystem.File_WriteAllText(NPath path, String contents)
at NiceIO.NPath.WindowsFileSystem.File_WriteAllLines(NPath path, String[] contents)
at NiceIO.NPath.WriteAllLines(String[] contents)
at PlayerBuildProgramLibrary.FeatureExtractor.Run(CSharpActionContext ctx, Boolean ignoreSystemDlls)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

回答1件
あなたの回答
tips
プレビュー