Android Building Google Play Services

Just finished my game and I’ve added leaderboards on Play games. But I cannot build my project, ive installed all the necessary SDK’s and probably allot more. I’ve been researching this for ages and have since reinstalled all the SDK’s so this should be a clean slate.

any help would be very much appreciated as I really want to get this game out and this is the only thing stopping me.

Sincerely Rubar.

Heres the error im getting:

ommandInvokationFailure: Failed to re-package resources. See the Console for details.
E:\Android\build-tools\23.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "E:/Android\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.android.vending.billing:com.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.unity3d.ads.android -S "E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\common\res" -S "E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\GooglePlay\res" -S "E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res"

stderr[
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <RelativeLayout>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:61: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <RelativeLayout>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <RelativeLayout>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <View>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml:10: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml: note: using v17 attributes; synthesizing resource com.Smijjy.Cuber:layout/unityads_button_audio_toggle for configuration v17.
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml: note: using v17 attributes; synthesizing resource com.Smijjy.Cuber:layout/unityads_button_pause for configuration v17.
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:92: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <include>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <LinearLayout>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:57: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <LinearLayout>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml: note: using v17 attributes; synthesizing resource com.Smijjy.Cuber:layout/unityads_view_video_play for configuration v17.
AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

]
stdout[
Configurations:
 (default)

Files:
  drawable\unityads_background_button_pause.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_background_button_pause.xml
  drawable\unityads_icon_play.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_play.xml
  drawable\unityads_icon_speaker_base.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_base.xml
  drawable\unityads_icon_speaker_triangle.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_triangle.xml
  drawable\unityads_icon_speaker_waves.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_waves.xml
  layout\unityads_button_audio_toggle.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml
  layout\unityads_button_pause.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml
  layout\unityads_view_video_paused.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_paused.xml
  layout\unityads_view_video_play.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml
  values\values.xml
    Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\values\values.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\unityads_background_button_pause.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_background_button_pause.xml
    drawable\unityads_icon_play.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_play.xml
    drawable\unityads_icon_speaker_base.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_base.xml
    drawable\unityads_icon_speaker_triangle.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_triangle.xml
    drawable\unityads_icon_speaker_waves.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_waves.xml
  Type layout
    layout\unityads_button_audio_toggle.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml
    layout\unityads_button_pause.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml
    layout\unityads_view_video_paused.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_paused.xml
    layout\unityads_view_video_play.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml
  Type values
    values\values.xml
      Src: () E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\values\values.xml
Including resources from package: E:\Android\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable\app_icon.png
Processing image: res\drawable-ldpi\app_icon.png
Processing image: res\drawable-hdpi\app_icon.png
Processing image: res\drawable-xhdpi\app_icon.png
    (processed image res\drawable-ldpi\app_icon.png: 95% size of source)
    (processed image res\drawable\app_icon.png: 95% size of source)
Processing image: res\drawable-xxhdpi\app_icon.png
Processing image: res\drawable-xxxhdpi\app_icon.png
    (processed image res\drawable-hdpi\app_icon.png: 95% size of source)
    (processed image res\drawable-xhdpi\app_icon.png: 93% size of source)
    (processed image res\drawable-xxhdpi\app_icon.png: 94% size of source)
    (processed image res\drawable-xxxhdpi\app_icon.png: 92% size of source)
    (new resource id app_icon from drawable\app_icon.png #generated)
    (new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated)
    (new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated)
    (new resource id unityads_background_button_pause from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_background_button_pause.xml)
    (new resource id unityads_icon_play from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_play.xml)
    (new resource id unityads_icon_speaker_base from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_base.xml)
    (new resource id unityads_icon_speaker_triangle from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_triangle.xml)
    (new resource id unityads_icon_speaker_waves from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_waves.xml)
    (new resource id unityads_button_audio_toggle from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml)
    (new resource id unityads_button_pause from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml)
    (new resource id unityads_view_video_paused from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_paused.xml)
    (new resource id unityads_view_video_play from E:\Unity Game Design\Cube Falling Prototype\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml)
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()

Hi, I’m getting same problem wit UnityAds. Could you solve it?