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!
<?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>
@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.