首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >统一未能重新包装资源

统一未能重新包装资源
EN

Game Development用户
提问于 2016-11-10 05:06:38
回答 2查看 1.9K关注 0票数 0

我正试着把阿蒙斯融入我的团结游戏中。我导入了Google游戏插件和Ad暴民插件,但是在过去的几天里,我一直收到这个错误。

代码语言:javascript
运行
复制
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Tau\AppData\Local\Android\android-sdk\build-tools\25.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Tau/AppData/Local/Android/android-sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.android.gms.ads.impl:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.clearcut:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.v4:android.support.v4 -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-ads-9.4.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-ads-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-ads-lite-9.4.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-ads-lite-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-auth-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-auth-base-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.4.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-basement-9.4.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-basement-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-clearcut-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-drive-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-games-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-gass-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-nearby-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-tasks-9.8.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\support-v4-23.0.0\res" -S "C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\support-v4-24.0.0\res"

stderr[
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_alert_dialog_material.xml:111: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.internal.widget.DialogTitle>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/abc_alert_dialog_material for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/abc_dialog_title_material for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.internal.widget.ActionBarContainer>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/abc_screen_toolbar for configuration v21.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/abc_search_view for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_big_media for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_big_media_narrow for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_lines for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_media for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_part_chronometer for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.CasualGames.CoinDrop:layout/notification_template_part_time for configuration v17.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\drawable\abc_textfield_search_material.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:state_activated from <item>
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\appcompat-v7-23.0.0\res\drawable\abc_textfield_search_material.xml: note: using v11 attributes; synthesizing resource com.CasualGames.CoinDrop:drawable/abc_textfield_search_material for configuration v11.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.8.0\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-basement-9.4.0\res\values\values.xml:3: Original attribute defined here.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.4.0\res\values\values.xml:21: error: Attribute "buttonSize" already defined with incompatible format.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.8.0\res\values\values.xml:47: Original attribute defined here.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.4.0\res\values\values.xml:21: error: Attribute "colorScheme" already defined with incompatible format.
C:\Users\Tau\Documents\Coin Drop\Temp\StagingArea\android-libraries\play-services-base-9.8.0\res\values\values.xml:55: Original attribute defined here.
]
stdout[
Configurations:
 (default)

Files:
  AndroidManifest.xml
    Src: () AndroidManifest.xml

我该怎么解决这个问题?

EN

回答 2

Game Development用户

回答已采纳

发布于 2016-11-11 21:22:04

我花钱解决了这个问题,但解决办法很简单。删除google服务文件夹,删除play -services 9.4.0文件并支持v23。在团结。

票数 0
EN

Game Development用户

发布于 2016-11-10 17:08:26

看起来您缺少了Google服务,它是一个独立的包,与您正在使用的两个包不同,它是一个依赖项。您需要通过Android或其他位置下载它,并将其添加到项目文件夹中。参见这里的问题:http://answers.unity3d.com/questions/1190674/missing-libraries-in-google-play-services-revision.html

票数 0
EN
页面原文内容由Game Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://gamedev.stackexchange.com/questions/132844

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档