2015-06-09 69 views
2

我有Unity 5.0.2f1。首先,我已成功將GooglePlayGamesPlugin-0.9.20.unitypackage添加到我的項目中。於是,我試圖導入GoogleMobileAds.unitypackage,但我得到了這些錯誤:Unity3D 5套餐衝突

Error importing folder (The pathName assets/plugins is already mapped to fce8a713f1e5a4cc4b9973d1ef630f31. But the meta data wants it to be mapped to cbde64d36fd994c458fffca9e931b232) 
Error importing folder (The pathName assets/plugins/android is already mapped to b8f0d9a6a7f9240c981894807effddbc. But the meta data wants it to be mapped to 2f5d736f7c4cb4c1e80d0816d0e81625) 
Error importing folder (The pathName assets/plugins/ios is already mapped to 6490bb8acab6f4f92b29615e7429b8df. But the meta data wants it to be mapped to da135550add3c4abca622bda5280d204) 

如何解決這個問題?

回答

2

首先備份您的項目並刪除資產項目文件夾和孩子中的元數據文件。 擴展名爲.meta的文件

+0

這些文件被重新創建,因爲只有Unity獲得焦點。 – Necronomicron

+1

嗯,我剛纔手動改變了* .meta文件中的'guid',並且包最終被導入,但僅僅爲了好奇心,我試着再次導入第一個包,現在它顯示出類似的錯誤...我不'如果一切現在都能正常工作。 – Necronomicron

+0

問題是在元數據文件中存儲了緩存映射參考,並且當重新導入無效時。 – joreldraw

1

我可以想到的最簡單的解決方法: 1.在Unity編輯器中,創建Assets文件夾的子文件夾,例如名爲TEMP123。 2.將資產文件夾的整個(其他)內容移到TEMP123。 3.導入你的包。 4.手動合併TEMP123back的內容到Assets文件夾。

1

如果您看到這些類型的錯誤,請重新導入所有資產。這將重新處理元數據,並且錯誤消失。