C# CommandInvokationFailure:无法重新打包资源

C# CommandInvokationFailure:无法重新打包资源,c#,unity3d,C#,Unity3d,在编译项目时,Unity 5.6.3p2会产生以下错误: CommandInvokationFailure: Failed to re-package resources. C:\Users\Robot\AppData\Local\Android\Sdk\build-tools\27.0.0\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Ro

在编译项目时,Unity 5.6.3p2会产生以下错误:

CommandInvokationFailure: Failed to re-package resources.
C:\Users\Robot\AppData\Local\Android\Sdk\build-tools\27.0.0\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Robot/AppData/Local/Android/Sdk\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages com.chartboost.sdk.unity:com.unity.purchasing:com.sglib.mobile.androidnative:com.android.vending.billing:com.google.unity.ads:com.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.google.games.bridge:com.google.android.gms.ads.impl:com.google.android.gms.admob.impl.license:com.google.android.gms.ads:com.google.android.gms.admob.license:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.common.license:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.gass.license:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4 -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\common\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\mobile\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\GooglePlay\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\gpgs-plugin-support-0.9.42\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-ads-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-ads-lite-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-auth-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-auth-base-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-base-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-basement-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-drive-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-games-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-gass-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-nearby-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-tasks-11.6.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-compat-25.2.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-core-ui-25.2.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-core-utils-25.2.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-fragment-25.2.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-media-compat-25.2.0\res" -S "C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\support-v4-25.2.0\res"

stderr[
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\mobile\res\layout\ratingdialog.xml:7: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\mobile\res\layout\ratingdialog.xml:7: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\mobile\res\layout\ratingdialog.xml: note: using v17 attributes; synthesizing resource com.Robot.S:layout/ratingdialog for configuration v17.
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-base-11.6.0\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values\values.xml:3: Original attribute defined here.
]
CommandInvokationFailure:无法重新打包资源。
C:\Users\Robot\AppData\Local\Android\Sdk\build tools\27.0.0\aapt.exe包--自动添加覆盖-v-f-m-J“gen”-m“AndroidManifest.xml”-S“res”-I“C:/Users/Robot/AppData/Local/Android/Sdk\platforms\Android-27\Android.jar”-F bin/resources.ap--额外的包com.chartboost.sdk.unity:com.unity.purchasing:com.sglib.mobile.androidnative:com.android.vending.billing:com.google.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.google.games.bridge:com.google.android.ads.impl:com.google.android.gms.admob.impl.license:com.google.android.android.gms.gms.gms.admob.ads.ads。许可证:com.google.android.gms.auth.api:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.gms:com.google.android.gms.common.license:com.google.android.gms.drive:com.google.android.gms.gass:com.google.android.gms.gass.license:com.google.android.gmsd、 gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacomat:android.support.v4-S“C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\staginagerea\android库\common\res”-S“C:\Users\Robot\Desktop\UnityProjects\Test\Temp\staginagerea\android库\mobile\res”-S“C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\GoogleAIDL\res”-S“C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\GooglePlay\res”-S“C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\gpgs-plugin-support-0.9.42\res”-“C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\play-services-ads-11.6.0\res”-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\Robot\Desktop\UnityProjects\S\S(测试)\Temp\stagingara\android libraries\play-services-lite-11.6.0\res”-”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android库\play-services-auth-base-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android库\play-services-base-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S\S(测试)\Temp\stagingara\android库\play-services-base-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\play-services-base-9.0.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\play-services-drive-11.6.0\res“-”S“C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\play-services-games-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\play-services-gass-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingers\android libraries-near-11.6.0\res-S(测试)\Temp\stagingera\android libraries\play-services-tasks-11.6.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingera\android libraries\support-compat-25.2.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingera\android libraries\support-core-ui-25.2.0\res“-”S(测试)\Temp\stagingera\android libraries\support-core-utils-25.2.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingera\android libraries\support-fragment-25.2.0\res“-S”C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingera\android libraries\media-compat-25.2.0\res“-”S(测试)\Temp\stagingara\android库\support-v4-25.2.0\res“
斯特德尔[
C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\mobile\res\layout\ratingdialog.xml:7:注意:删除属性http://schemas.android.com/apk/res/android:layout_marginEnd 从…起
C:\Users\Robot\Desktop\UnityProjects\S(测试)\Temp\stagingara\android libraries\mobile\res\layout\ratingdialog.xml:7:注意:删除属性http://schemas.android.com/apk/res/android:layout_marginStart 从…起
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\stagingara\android libraries\mobile\res\layout\ratingdialog.xml:注意:使用v17属性;合成资源com.Robot.S:配置v17的布局/分级对话框。
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\stagingara\android libraries\play-services-base-11.6.0\res\values\values.xml:33:错误:属性“ImageAspectrationJust”已使用不兼容的格式定义。
C:\Users\Robot\Desktop\UnityProjects\S(Test)\Temp\stagingara\android libraries\play-services-base-9.0.0\res\values\values.xml:3:此处定义的原始属性。
]

我试图在类似的主题中提出许多建议,但似乎我在项目中的插件之间存在冲突,因此我想从专业人士那里知道这是冲突的原因,还是我只是使用了错误版本的工具

“ImageAspectrationJust”已使用不兼容的格式定义。
您的一个插件似乎正在将ImageAspectRatiLoadJust设置为与Android设备不兼容的格式。你有任何插件会影响这个属性吗?在我开始在项目中与谷歌Admob一起使用Chartboost之后,出现了这样一个错误。真的没有理由使用多个广告网络。他们可能都在为各自的广告设置AspectRatiLoad。只需使用一个广告网络即可。如果您需要更多广告,请在AdMob或您选择的任何一个中创建它们,并将它们添加到您想要的位置。。。