2016-04-27 5 views
0

Heyzapをいくつかの広告主SDKと統合しようとしています。 iOS用の建物は問題ありません。Android用にビルドする場合にのみ発生します。 UnityAds AndroidManifest.xmlファイルを削除しようとしましたが、再度ビルドしないので、元に戻す必要がありました。 2日前に新しくAndroid Studioをインストールしましたので、ADTが最後のバージョンになっているはずですか?Error building Player:CommandInvokationFailure:Unity3DでAndroid用にビルドするときにリソースを再パッケージできませんでした

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. 
C:\sdk\android-sdk\build-tools\23.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/sdk/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.facebook.ads:com.chartboost.sdk.unity:com.google.android.gms:com.heyzap:com.hyprmx.android.sdk:com.unity3d.ads.android:com.pushok.test -S "C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\ads-release\res" -S "C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\HyprMX-SDK\res" -S "C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res" 

stderr[ 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\HyprMX-SDK\res\drawable-mdpi\close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:28: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:28: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <ImageView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_powered_by_google.xml: note: using v17 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/place_autocomplete_item_powered_by_google for configuration v17. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:35: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <TextView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <include> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_item_prediction.xml: note: using v17 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/place_autocomplete_item_prediction for configuration v17. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:indeterminateTint from <ProgressBar> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:indeterminateTintMode from <ProgressBar> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\layout\place_autocomplete_progress.xml: note: using v21 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/place_autocomplete_progress for configuration v21. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <RelativeLayout> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:61: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <RelativeLayout> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <RelativeLayout> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml:10: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml: note: using v17 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/unityads_button_audio_toggle for configuration v17. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_pause.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_pause.xml: note: using v17 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/unityads_button_pause for configuration v17. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml:92: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <include> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <LinearLayout> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <LinearLayout> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView> 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml: note: using v17 attributes; synthesizing resource com.Brixbyte.AwesomeArcadeTemplate:layout/unityads_view_video_play for configuration v17. 
C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\base_attrs.xml:11: error: Attribute "buttonSize" has already been defined 

] 
stdout[ 
Configurations: 
(default) 

Files: 
    drawable\unityads_background_button_pause.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_background_button_pause.xml 
    drawable\unityads_icon_play.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_play.xml 
    drawable\unityads_icon_speaker_base.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_base.xml 
    drawable\unityads_icon_speaker_triangle.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_triangle.xml 
    drawable\unityads_icon_speaker_waves.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_waves.xml 
    layout\unityads_button_audio_toggle.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml 
    layout\unityads_button_pause.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_pause.xml 
    layout\unityads_view_video_paused.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_paused.xml 
    layout\unityads_view_video_play.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml 
    values\strings.xml 
    Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\values\strings.xml 
    AndroidManifest.xml 
    Src:() AndroidManifest.xml 

Resource Dirs: 
    Type drawable 
    drawable\unityads_background_button_pause.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_background_button_pause.xml 
    drawable\unityads_icon_play.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_play.xml 
    drawable\unityads_icon_speaker_base.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_base.xml 
    drawable\unityads_icon_speaker_triangle.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_triangle.xml 
    drawable\unityads_icon_speaker_waves.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\drawable\unityads_icon_speaker_waves.xml 
    Type layout 
    layout\unityads_button_audio_toggle.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_audio_toggle.xml 
    layout\unityads_button_pause.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_button_pause.xml 
    layout\unityads_view_video_paused.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_paused.xml 
    layout\unityads_view_video_play.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\layout\unityads_view_video_play.xml 
    Type values 
    values\strings.xml 
     Src:() C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\unityads\res\values\strings.xml 
Including resources from package: C:\sdk\android-sdk\platforms\android-23\android.jar 
applyFileOverlay for drawable 
trying overlaySet Key=close.png 
trying overlaySet Key=graybutton.9.png 
trying overlaySet Key=greenbutton.9.png 
trying overlaySet Key=hypr_progress_drawable.xml 
trying overlaySet Key=next_button.xml 
trying overlaySet Key=cast_ic_notification_0.png 
trying overlaySet Key=cast_ic_notification_1.png 
trying overlaySet Key=cast_ic_notification_2.png 
trying overlaySet Key=cast_ic_notification_connecting.xml 
trying overlaySet Key=cast_ic_notification_on.png 
trying overlaySet Key=common_full_open_on_phone.png 
trying overlaySet Key=common_google_signin_btn_icon_dark.xml 
trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png 
trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png 
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png 
trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png 
trying overlaySet Key=common_google_signin_btn_icon_light.xml 
trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png 
trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png 
trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png 
trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png 
trying overlaySet Key=common_google_signin_btn_text_dark.xml 
trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png 
trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png 
trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png 
trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png 
trying overlaySet Key=common_google_signin_btn_text_light.xml 
trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png 
trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png 
trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png 
trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png 
trying overlaySet Key=common_ic_googleplayservices.png 
trying overlaySet Key=common_plus_signin_btn_icon_dark.xml 
trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_dark_normal.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_dark_pressed.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_light.xml 
trying overlaySet Key=common_plus_signin_btn_icon_light_disabled.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_light_focused.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_light_normal.9.png 
trying overlaySet Key=common_plus_signin_btn_icon_light_pressed.9.png 
trying overlaySet Key=common_plus_signin_btn_text_dark.xml 
trying overlaySet Key=common_plus_signin_btn_text_dark_disabled.9.png 
trying overlaySet Key=common_plus_signin_btn_text_dark_focused.9.png 
trying overlaySet Key=common_plus_signin_btn_text_dark_normal.9.png 
trying overlaySet Key=common_plus_signin_btn_text_dark_pressed.9.png 
trying overlaySet Key=common_plus_signin_btn_text_light.xml 
trying overlaySet Key=common_plus_signin_btn_text_light_disabled.9.png 
trying overlaySet Ke<message truncated> 

答えて

1

Google Playサービスとの明白な合併の競合があるようです。

C:\Users\Akatsuki\Documents\Unity3D\awesome-arcade-template\Temp\StagingArea\android-libraries\google-play-services_libフォルダを削除してみます。代わりに、必要なGoogle Playサービスをインストールするにはhttps://github.com/googleads/googleads-mobile-unityプラグインを使用してください。 Google PlayサービスのゲームAPIを使用している場合は、このプラグインも試してみてください。https://github.com/playgameservices/play-games-plugin-for-unity

これらのプラグインは、デフォルトでHeyzapとは異なるGoogle Playサービスの依存関係を処理します。私はHeyzapのエンジニアであり、GoogleがUnityのためにGoogleプレイサービスの依存関係を処理する方法を変更することを検討しています。これがあなたの問題を解決するかどうか私に教えてください。

+0

あなたが言ったようにAssets/Plugins/Android/google-play-services_libを削除し、googleads-mobile-unityをインストールしました。以前のエラーメッセージは消えましたが、AndroidManifestのマージに関する新しい問題が発生しました。 https://github.com/playgameservices/play-games-plugin-for-unity/issues/801#issuecomment-179314012に関連しているようです。 googleads-mobile-unityは、インストールウィザードで提案されているadmobバージョンと互換性がないと思います。 googleads-mobile-unityを使用して、最初からインポートを再開します。 – 3pns

+0

今回はadmobで作業していると思う。私はロールバックを行い、Heyzapは単独で作業し、次にgooglemobileadsパッケージをインポートしました。作業してコンパイルしたようです。今日はもはや動作していない、いくつかのファイルが生成されました。私はあなたが再び言ったことをし、google-play-services_libフォルダを削除しました。そして、もう一度コンパイルしています...しかし、今度はadmob広告が表示されます。現在、パッケージを再インポートしようとすると、PlayServiceResolver/Editor/AdMobDependencies.csとPlayServiceResolver/JarResolverLib.ddlの2つのファイルがプロジェクトにありません。したがって、このフォルダと2つのファイルには明確に関連しています – 3pns

関連する問題