Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Bin e croft · Dec 30, 2014 at 03:51 AM · androidbuild-errorandroid buildbuild settingsandroid-sdk

Android Error building Player: CommandInvokationFailure: Failed to re-package resources

 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Program Files\Android\android-sdk\build-tools\21.1.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files/Android/android-sdk/platforms/android-10\android.jar" -F bin/resources.ap_
 
 stderr[
 AndroidManifest.xml:5: error: Error: String types not allowed (at 'configChanges' with value 'mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale').
 
 ]
 stdout[
 Configurations:
  (default)
  ldpi-v4
  hdpi-v4
  xhdpi-v4
  xxhdpi-v4
  xxxhdpi-v4
 
 Files:
   drawable\app_icon.png
     Src: () res\drawable\app_icon.png
     Src: (ldpi-v4) res\drawable-ldpi\app_icon.png
     Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
     Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
     Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
     Src: (xxxhdpi-v4) res\drawable-xxxhdpi\app_icon.png
   values\strings.xml
     Src: () res\values\strings.xml
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
   Type drawable
     drawable\app_icon.png
       Src: () res\drawable\app_icon.png
       Src: (ldpi-v4) res\drawable-ldpi\app_icon.png
       Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
       Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
       Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
       Src: (xxxhdpi-v4) res\drawable-xxxhdpi\app_icon.png
   Type values
     values\strings.xml
       Src: () res\values\strings.xml
 Including resources from package: C:\Program Files\Android\android-sdk\platforms\android-10\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\app_icon.png
 Processing image: res\drawable-ldpi\app_icon.png
     (processed image res\drawable-ldpi\app_icon.png: 141% size of source)
     (processed image res\drawable\app_icon.png: 130% size of source)
 Processing image: res\drawable-hdpi\app_icon.png
 Processing image: res\drawable-xhdpi\app_icon.png
     (processed image res\drawable-hdpi\app_icon.png: 69% size of source)
 Processing image: res\drawable-xxhdpi\app_icon.png
     (processed image res\drawable-xhdpi\app_icon.png: 66% size of source)
 Processing image: res\drawable-xxxhdpi\app_icon.png
     (processed image res\drawable-xxhdpi\app_icon.png: 67% size of source)
     (processed image res\drawable-xxxhdpi\app_icon.png: 70% size of source)
     (new resource id app_icon from drawable\app_icon.png #generated)
     (new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated)
     (new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated)
     (new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated)
     (new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated)
     (new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated)
 ]

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Yury-Habets · Dec 30, 2014 at 06:35 AM

This is pretty self-descriptive:

"AndroidManifest.xml:5: error: Error: String types not allowed (at 'configChanges' with value 'mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale')."

Check your manifest or post it here.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bin e croft · Jan 02, 2015 at 12:19 PM 0
Share

this is the file found in this folder C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer is this is correct file??

avatar image Bin e croft · Jan 02, 2015 at 01:03 PM 0
Share
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.$$anonymous$$enginston.Vikas$$anonymous$$umar" android:theme="@android:style/Theme.NoTitleBar" android:versionName="1.0" android:versionCode="1" android:installLocation="preferExternal">
   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
   <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
     <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:screenOrientation="fullSensor" android:launch$$anonymous$$ode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|ui$$anonymous$$ode|screenSize|smallestScreenSize|fontScale">
       <intent-filter>
         <action android:name="android.intent.action.$$anonymous$$AIN" />
         <category android:name="android.intent.category.LAUNCHER" />
         <category android:name="android.intent.category.LEANBAC$$anonymous$$_LAUNCHER" />
       </intent-filter>
       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
       <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
     </activity>
   </application>
   <uses-sdk android:$$anonymous$$SdkVersion="10" android:targetSdkVersion="10" />
   <uses-feature android:glEsVersion="0x00020000" />
   <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
   <uses-feature android:name="android.hardware.touchscreen.mul$$anonymous$$ch" android:required="false" />
   <uses-feature android:name="android.hardware.touchscreen.mul$$anonymous$$ch.distinct" android:required="false" />
 </manifest>
avatar image Yury-Habets ♦♦ · Jan 05, 2015 at 07:07 AM 0
Share

The manifest can be found in your Unity project folder + Temp/StagingArea/Android$$anonymous$$anifest.xml after you build your project, or if you select "Google Android Project" in the build window and choose "Export".

Seems like you posted your actual manifest, thanks. One thing that is suspicious is android:targetSdkVersion="10" - should be at least 19 or 21 in latest Unity versions.

Looks like you don't have Android SD$$anonymous$$ API level 21 installed. Please open Android SD$$anonymous$$ $$anonymous$$anager http://developer.android.com/tools/help/sdk-manager.html , select "SD$$anonymous$$ Platform" under API 21 and click "Install".

(by the way it should be done automatically by Unity, I will double check - which version of Unity are you using?)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

CommandInvokationFailure: Gradle build failed. 1 Answer

How to correct the errors with my android build 0 Answers

The game freezes after a splash screen 0 Answers

Unity unable to update android APK 29 0 Answers

Android Build Fail, CommandInvokationFailure 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges