android build problem

hi
i try to build the game for android but it gives me two errors with one massage say minimum platform required is android 5.0(API level 21) i solve that errors
but it now give me two errors for repackage the file and i got API 21 but it show me that massage when click continue button show another massage failed to re-pack resource with this two errors

CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\android sdk\build-tools\android-5.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/android sdk/platforms/android-17\android.jar" -F bin/resources.ap_

stderr[
AndroidManifest.xml:4: error: No resource identifier found for attribute 'isGame' in package 'android'

AndroidManifest.xml:4: error: No resource identifier found for attribute 'banner' in package 'android'

]
stdout[
Configurations:
 (default)
 xhdpi-v4

Files:
  drawable\app_banner.png
    Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
  drawable\app_icon.png
    Src: () res\drawable\app_icon.png
  values\strings.xml
    Src: () res\values\strings.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\app_banner.png
      Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
    drawable\app_icon.png
      Src: () res\drawable\app_icon.png
  Type values
    values\strings.xml
      Src: () res\values\strings.xml
Including resources from package: D:\android sdk\platforms\android-17\android.jar
applyFileOverlay for drawable
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-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
    (processed image res\drawable\app_icon.png: 94% size of source)
    (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated)
    (new resource id app_icon from drawable\app_icon.png #generated)
]
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 (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options)
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.HostView:OnGUI()

and

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\android sdk\build-tools\android-5.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/android sdk/platforms/android-17\android.jar" -F bin/resources.ap_

stderr[
AndroidManifest.xml:4: error: No resource identifier found for attribute 'isGame' in package 'android'

AndroidManifest.xml:4: error: No resource identifier found for attribute 'banner' in package 'android'

]
stdout[
Configurations:
 (default)
 xhdpi-v4

Files:
  drawable\app_banner.png
    Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
  drawable\app_icon.png
    Src: () res\drawable\app_icon.png
  values\strings.xml
    Src: () res\values\strings.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\app_banner.png
      Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
    drawable\app_icon.png
      Src: () res\drawable\app_icon.png
  Type values
    values\strings.xml
      Src: () res\values\strings.xml
Including resources from package: D:\android sdk\platforms\android-17\android.jar
applyFileOverlay for drawable
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-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
    (processed image res\drawable\app_icon.png: 94% size of source)
    (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated)
    (new resource id app_icon from drawable\app_icon.png #generated)
]

edit: i tried update sdk with that massage but it show one massage with this 3 errors

Error building Player: CommandInvokationFailure: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. See the Console for more details. 
D:\java\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/android sdk	ools" -Dfile.encoding=UTF8 -jar "D:/unity 5/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[
Error:Invalid command y
]

stdout[

]

CommandInvokationFailure: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. See the Console for more details. 
D:\java\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/android sdk	ools" -Dfile.encoding=UTF8 -jar "D:/unity 5/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -

stderr[
Error:Invalid command y
]
stdout[

]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()

Error:Invalid command y

UnityEditor.HostView:OnGUI()

You are using extremely outdated Android SDK components, and auto update of SDK in the Editor does not seem to work for you.

First of all, rename your “D:\android sdk” folder so that it does not contain spaces (for example, into “D:\android-sdk”). Try loading Unity again, go to preferences, set the new Android SDK path. Build for Android, it will say your SDK is outdated, click Update and see if it helps.

If you are still getting the error, please do the following:

  • Open Android SDK Manager: D:\android-sdk ools\android.bat
  • Update Android tools, platform-tools and restart the SDK manager if prompted
  • Update Android tools (latest version for me is 24.4), platform-tools if needed (latest version 23.0), install latest build-tools (latest version 23.0.2)
  • Install SDK platform for API level 22 (other latest SDK platforms if you wish)
  • Don’t install system images if you don’t need them
  • Try building in Unity again.

Hope that helps.

i don’t know why one name cause this long text error but i solved with @Yury Habets help
go to sdk folder platforms and change name of platform name to android-(api level)
for example my android-21 api folder named android5.0.1 and this cause problem and i rename it and done