關於安卓與unity開發中,AAR的報的乙個錯誤

2021-09-20 19:01:53 字數 1044 閱讀 6608

錯誤:ioexception: failed to copy file / directory from 『temp/stagingarea\android-libraries\xflibrary-debug\classes.jar』 to 『temp/stagingarea\android-libraries\xflibrary-debug\libs\classes.jar』: destination path already exists.

unityeditor.fileutil.movefileordirectory (system.string source, system.string dest) (at d:/unity/artifacts/generated/common/editor/fileutilbindings.gen.cs:74)

unityeditor.android.postprocessor.tasks.processaar.execute (unityeditor.android.postprocessor.postprocessorcontext context)

unityeditor.android.postprocessor.postprocessrunner.runalltasks (unityeditor.android.postprocessor.postprocessorcontext context)

unityeditor.android.postprocessandroidplayer.postprocess (buildtarget target, system.string stagingareadata, system.string stagingarea, system.string playerpackage, system.string installpath, system.string companyname, system.string productname, buildoptions options

錯誤原因:我把aar包 —>libs裡的classes.jar包刪除了,把arr裡、不在libs資料夾裡的那個classes.jar包拖進libs資料夾裡。以前這麼做是正確的,現在這麼做是錯誤的。

Unity 安卓開發

不過不要慌,如果你不想用最新版本也可以這麼幹 1.安裝個最新版本的編輯器並在安裝時勾選android build support那些選項。2.完成安裝後開啟編輯器找到配置的路徑 edit preferences external tools 直接把這些路徑拷貝到你想要用的那個版本編輯器配置。打包ap...

Unity與安卓通訊

unity5.0以後,將unityplayeractivity打成jar包,打包報錯。解決方法 將bin下面所有包含r的類刪掉再打jar包,打jar包命令 cd到classes目錄,jar cvf jar 記錄下plugins android下面的檔案位置 1 jar包 res資料夾 android...

配置Unity安卓開發環境

內容提要 本文主要是介紹安裝unity3d引擎的安裝以及打包安卓輸出環境 unity是乙個非常強大的引擎,我們使用它可以進行跨平台開發,完成以前很多任務作量的事情。那麼我們如何去搭建乙個常用的安卓開發環境呢。接下來讓我們一步一步來實現 前言 了解unity引擎 其編輯器執行在windows 和mac...