投稿の目的
- 謎のエラーを消し,Unityへの理解を深める
- 似たようなケースの対処法について,日本語の解説記事を増やす
経緯:
- Unityでのビルドがうまくいかなかったので,Unityをアンインストール後,再インストールした.
- Android Studioも再インストール&SDKのtoolsフォルダを旧バージョン(http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip)に.
- JDKも旧バージョン(8u161)に.(cf.https://answers.unity.com/questions/1419389/how-to-fix-android-gradle-failure.html)
- ビルド自体はできるようになったが,不思議なエラー?(トップ画像)が表示される.
- 原因らしきdllに,「IObit」の文字が含まれているので,Unityをアンインストールする時に使ったIObit Uninstallerが関係している?
- 試しに「IObit」を含むdllをすべて削除してみたが,ビルド時に復活する
- 今までAndroid向けビルドしか試していなかったので,PC向けビルドも行ってみると,やはり似たようなエラー
- teratailへ駆け込む <--いまココ
環境:
- Windows8.1 64bit
- Unity 2017.4.0f1 Personal
- Java SE Development Kit 8u161
- SDK tools 25.2.5
###Unityのコンソールに表示される内容
- Android向けにビルドするときに出るエラー
Assembly 'UnityEngine.Advertisements' has non matching file name: 'UnityEngine.Advertisements_IObitDel.dll'. This can cause build issues on some platforms. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() Assembly 'UnityEngine.Analytics' has non matching file name: 'UnityEngine.Analytics_IObitDel.dll'. This can cause build issues on some platforms. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() Assembly 'UnityEngine.Purchasing' has non matching file name: 'UnityEngine.Purchasing_IObitDel.dll'. This can cause build issues on some platforms. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() Assembly 'UnityEngine.StandardEvents' has non matching file name: 'UnityEngine.StandardEvents_IObitDel.dll'. This can cause build issues on some platforms. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
- PC向けにビルドするときに出るエラー
Assembly 'UnityEngine.Advertisements' has non matching file name: 'UnityEngine.Advertisements_IObitDel.dll'. This can cause build issues on some platforms. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Assembly 'UnityEngine.Analytics' has non matching file name: 'UnityEngine.Analytics_IObitDel.dll'. This can cause build issues on some platforms. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Assembly 'UnityEngine.Purchasing' has non matching file name: 'UnityEngine.Purchasing_IObitDel.dll'. This can cause build issues on some platforms. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Assembly 'UnityEngine.StandardEvents' has non matching file name: 'UnityEngine.StandardEvents_IObitDel.dll'. This can cause build issues on some platforms. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
参考:
- おもちゃラボ「【Unity】Android実機転送エラーの対処法まとめ」
- おもちゃラボ「【Unity】Androidビルドした時にエラーが出る場合の対処法」
- Unity Answers「How to fix Android Gradle Failure?」
- naichi's lab「【Unity、Android】最新のAndroidStudio入れたらUnable to list target platforms.が出て困った」
など
###【追記】プロジェクトを開いたときに出るエラーへの対応
- 「Packages/com.unity.ads/Editor/Resources/iOS/bulids/UnityAds.framework/UnityAds~」
対処内容:
C:\ProgramData\Unity\cache\packages\packages.unity.com\com.unity.ads@2.0.3\Editor\Resources\iOS\builds\UnityAds.framework
の,「IObit」を含むファイルを削除すると,上画像のようなエラーがでなくなった
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。