2015-11-10 57 views
1

我在嘗試構建Android遊戲時遇到錯誤。錯誤是:Unity無法重新打包資源錯誤

CommandInvokationFailure:無法重新打包資源。詳情請參閱控制檯。 C:\ Users \ halil.cosgun \ Desktop \ ADTBundle \ adt_bundle \ sdk \ build-tools \ 21.1.1 \ aapt.exe包--auto-add-overlay -v -f -m -J gen -M AndroidManifest。 xml -S「res」-I「C:/Users/halil.cosgun/Desktop/ADTBundle/adt_bundle/sdk \ platforms \ android-21 \ android.jar」-F bin/resources.ap_ --extra-packages com。 fusepowered.unitytest:com.google.android.gms:com.unity3d.player:com.google.android.gms -S「C:\ Users \ halil.cosgun \ Desktop \ Projects \ AmbulanceFirstDeneme \ Temp \ StagingArea \ android-libraries \ FuseSDK \ res「-S」C:\ Users \ halil.cosgun \ Desktop \ Projects \ AmbulanceFirstDeneme \ Temp \ StagingArea \ android-libraries \ google-play-services_lib \ res「-S」C:\ Users \ halil.cosgun \ Desktop \ Projects \ AmbulanceFirstDeneme \ Temp \ StagingArea \ android-libraries \ play-services-base-6.5.87 \ res「

如果我刪除了play_game_services_ libs文件夾(play_game_services.jar在那裏),構建成功。但是,PlayGamesPlatform.Activate()代碼不起作用。如果我刪除FuseSDK,則構建成功。我知道這兩個插件之間存在衝突,但我沒有弄清楚我是如何解決這個問題的。

請幫幫我。

真誠。

這些截圖我的項目文件夾:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

+0

我不確定,但它有可能你有兩個版本的谷歌播放服務。如果我還記得,你可以在整個項目中只有一個。 –

回答

1

其實我不知道我怎麼能在第一解決這個問題。我嘗試了很多方法來解決這個錯誤。首先,我將JDK更新到最新版本(jdk1.8.0.65 - 64bit) - 然後刪除了插件/ Android /文件夾中的play_game_services_6.5.8.7和AndroidSupportV4。之後,我將FuseSDK預製件添加到我的項目的主要場景中。最後我點擊Build and Run。

前: enter image description here 後: enter image description here

有一個愉快的一天! :)