安装在新的Windows 10版本的Unity 5.6.3p2上,然后是最后的Google SDK和Java 1.8,并尝试编译之前在同一版本上收集的项目,结果发出以下错误:
CommandInvokationFailure: Failed to re-package resources.
C:\用户\马克西姆\应用程序数据\本地\的Android \ SDK \构建工具\ 27.0.1 \ aapt.exe package --auto-add-overlay -v -f -m -J“gen”-M“AndroidManifest.xml” -S“res”-I“C:/ Users / Maksim / AppData / Local / Android / Sdk \ platforms \ android-27 \ android.jar” -F bin / resources.ap_ --extra-packages com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android。克:com.google.android.gms.clearcut:com.google.android.gms.gass:com.google.android.gms.tasks:android.support.v4 -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-ads-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-ads-lite-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-base-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-basement-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-clearcut-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-gass-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ play-services-tasks-10.2.4 \ res” -S“C:\ Users \ Maksim \ Desktop \ UnityProjects \ S \ Temp \ StagingArea \ android-libraries \ support-v4-24.0.0 \ res”
我已经尝试以多种方式解决它,例如,替换Android SDK中的文件夹工具的内容或删除重复文件.aar但这没有帮助。另外在一些主板上我发现有必要在项目的Plugins / android文件夹中执行一些操作,但是我没有像插件那样在项目中安装android文件夹。 可以做些什么?