I get this error when trying to build the apk file.
I've just added the google services and the admob.Unity could build the apk without admob, but now it can't.
Please help if you have a solution.
Error:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Android\android-sdk\build-tools\20.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Android/android-sdk/platforms/android-20\android.jar" -F bin/resources.ap_ --extra-packages com.google.example.games.basegameutils:com.google.android.gms:com.google.example.games.mainlibproj -S "C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\BaseGameUtils\res" -S "C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res"
stderr[
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:10: error: Attribute "adSize" has already been defined
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:17: error: Attribute "adSizes" has already been defined
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:20: error: Attribute "adUnitId" has already been defined
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_colors.xml:4: error: Resource entry common_signin_btn_dark_text_default is already defined.
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\colors.xml:4: Originally defined here.
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_colors.xml:5: error: Resource entry common_signin_btn_dark_text_pressed is already defined.
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\colors.xml:5: Originally defined here.
C:\Users\Hassan\Desktop\Programming\Cube-Dash\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_colors.xml:6: error: Resource e...
And so on...
Thanks in advance!
↧