(Unity3d) Chartboost and Admob can't Compatible -
in game, there admob plugin setup, , want set chartboost plugin too. when setup chartboost plugin, can't make apk package.
commandinvokationfailure: failed re-package resources. d:\android\sdk\build-tools\25.0.1\aapt.exe package --auto-add-overlay -v -f -m -j "gen" -m "androidmanifest.xml" -s "res" -i "d:/android/sdk\platforms\android-25\android.jar" -f bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.unity3d.player:com.unity.purchasing:com.android.vending.billing:com.google.unity.ads:com.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl: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: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:com.unity3d.ads:com.pushok.test -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\appcompat-v7-23.1.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\common\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\googleaidl\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\googleplay\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-ads-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-ads-lite-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-auth-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-auth-base-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-base-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-basement-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-basement-9.0.0\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-clearcut-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-drive-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-games-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-gass-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-nearby-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\play-services-tasks-10.0.1\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\support-v4-24.0.0\res" -s "e:\unitywork\myslots\slotsgame\temp\stagingarea\android-libraries\unityads\res"
and seems file androidmanifest.xml
made error.
your error commandinvokationfailure: failed re-package resources.
might occurs when have androidmanifest.xml
file (probably under plugins/android or plugin in subfolder of folder) tries access resource name (google_play_services_version), value never defined anywhere. usually, value added via method such adding androidmanifest.xml
or xml
under res/values
.
another workaround is:
to fix error, have copy
version.xml
file fromandroid-sdk/extras/google/google_play_services/libproject/google-play-services_lib/res/values/
into
assets/plugins/android/res/values/
of unity project's folder.
additional resource:
Comments
Post a Comment