build android problem
i have read all stuff in internet unity (4 & 5 ) dont build when project in not in Document folder my sdk is ok but i dont know what to do
error : Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\developer\android-sdk\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "F:/developer/android-sdk\platforms\android-25\android.jar" -F bin/resources.ap_
stderr[ AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'banner' with value '@drawable/app_banner').
] stdout[ Configurations: (default)
Files: AndroidManifest.xml Src: () AndroidManifest.xml
Resource Dirs: Including resources from package: F:\developer\android-sdk\platforms\android-25\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 ]
Answer by liortal · Apr 09, 2017 at 04:46 PM
Your AndroidManifest.xml file includes a reference to a resource named 'banner', but that resource was not found in your project.
From the error, you can also learn that this is a drawable resource, meaning it's an image of some kind.
To resolve the error, make sure you include this resource in your project (or verify that a plugin you're using includes this resource). Usually this is placed under Assets/Plugins/Android. Look for a folder named res/drawable.
NOTE: I provide a professional service for fixing Unity related issues with Android. In case you cannot find a solution to this issue yourself, please feel free to contact me via this link.