Failed to re-package resources.

I HAVE THIS ERROR ONLY WHEN I USE UNITY 5!

Hi, when i try to build my game for android i have an error: Failed to re-package resources. See the console for more details.
In console i see:

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

stderr[
AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon').

AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'label' with value ' @anon_76954444 /app_name').

AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'banner' with value '@drawable/app_banner').

AndroidManifest.xml:5: error: Error: No resource found that matches the given name (at 'label' with value ' @anon_76954444 /app_name').

]
stdout[
Configurations:
(default)

Files:
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
Including resources from package: G:\Programy\SDK\platforms\android-22\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
]

How to fix it? I dont have Assets/Plugins/Android folder or something like that.
Please, i really need your help!

Please, answer i need your help!

Can you please include your AndroidManifest.xml ?

It seems you are referencing some non-existing resources (by their IDs) in the manifest.

@liortal In my project i don’t have AndroidManifest.xml

Where should i have AndroidManifest.xml?

dont you have ANY Andorid libraries in your project? try looking for androidmanifest inside your project window search.

@liortal
Ok! I found it:

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.google.android.gms">
    <uses-sdk android:minSdkVersion="9"/>

    <application>
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
    </application>

</manifest>

that doesn’t look like it’s referencing any of those resources…

What Unity version are you on ?

@liortal Unity 5.0.1f1

@liortal I forgot, i didnt have AndroidManifest.xml, i added it manually.
Always when i make new project in Unity 5.0.1 and build it i dont have AndroidManifest.xml.
But in Unity 4.* i have no errors.

I didnt understand from what you said-

does this issue also occur when you build an empty project using 5.0.1 ?

@liortal Yeah but on unity 4.6.* all is working great.

Never saw anything like that, maybe a bug in the editor.

@liortal I will reinstall editor, maybe it will work.

Lol, thanks! After reinstall all is working great!
Thanks again and have a good day!