android build problem (SDK)

Hi…

I had used Unity Pro 4.6 and it works well.
But after I installed Unity Patch 4.6.1p4 every time I build my app I’ve got this error :

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

AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
	android:installLocation="preferExternal"
	android:theme="@android:style/Theme.NoTitleBar"
    android:versionCode="1"
    android:versionName="1.0">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true"/>
 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 <uses-permission android:name="android.permission.READ_PHONE_STATE "/>
    <application
		android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:debuggable="true">
        <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
            <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
        </activity>
    </application>
</manifest>

Using :

Unity Patch 4.6.1p4

Java : jre1.8.0_31

ADDED JAVA_HOME in Environment Variables

Android SDK Tools 24.0.2

SDK Platform Tools 21

SDK Build Tools 21…2

How can I fix this error …

thank you …

First of all, you need JDK, not JRE: http://unity3d.com/unity/system-requirements

Second, the real aapt error output is lower in the console, under stdout tag. If you don’t find it - please take a look at the log files Unity - Manual: Log files for the complete error description. This may be something related to manifest and missing resources.