Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by RicardoAntezana · Jun 26, 2016 at 07:17 PM · androidbuildbuild-errorresources

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

Hey guys,

I am currently facing issues when trying to make an Android app for the Gear VR. I've done this plenty times before and I'm not quite sure what the problem is now. I searched around and found answers to similar questions but I cannot understand what the error message is saying for mine specifically, and if its the same for the others. Here is the error messages in the console:

 CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Users\user\AppData\Local\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/user/AppData/Local/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.oculus.Integration -S "C:\Users\user\Documents\Slender VR\Temp\StagingArea\android-libraries\ovrplugin\res"
 
 stderr[
 
 ]
 stdout[
 
 ]
 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg)
 UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 UnityEditor.HostView:OnGUI()





 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Users\user\AppData\Local\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/user/AppData/Local/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.oculus.Integration -S "C:\Users\user\Documents\Slender VR\Temp\StagingArea\android-libraries\ovrplugin\res"
 
 stderr[
 
 ]
 stdout[
 
 ]
 


Any help is appreciated. Many thanks.

Comment
Add comment · Show 3
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 heltonspereira · Jun 27, 2016 at 01:03 PM 0
Share

Hi, SociopathStudios, I have the same problem

avatar image heltonspereira · Jun 28, 2016 at 10:45 AM 0
Share

Hi, SociopathStudios, I have the same problem, I did not find answers, here: http://answers.unity3d.com/questions/760989/failed-to-re-package-resources-2.html , have something similar, but i could not found that folder google_play_services_libprojects, in my SD$$anonymous$$ folder>>extras>>google_play_services>>

if you get solution please advise-me

avatar image U3Dxxx · Jun 28, 2016 at 12:50 PM 0
Share

http://answers.unity3d.com/questions/1154672/can-someone-please-help-1.html

1 Reply

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by rkliese · Jun 28, 2016 at 12:50 PM

I ran into the same issue. Workaround was: Open the Android SDK Manager -> SDK Tools (Tab) activate "show packages details" Open the details of "Android SDK Build Tools" Uninstall "Android SDK Build-Tools 24" Install, if not already there: "Android SDK Build-Tools 23.0.3"

That worked for me... Good luck.

Comment
Add comment · Show 4 · 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 RicardoAntezana · Jun 29, 2016 at 12:22 PM 0
Share

Thank you so much! This solved the problem! You're a star!

@heltonspereira This is the answer.

avatar image ceren · Jul 09, 2016 at 11:45 AM 0
Share

worked for me, too. thx!

avatar image Helvete · Jul 15, 2016 at 03:23 AM 0
Share

Thank you very much.

avatar image liortal · Jul 15, 2016 at 09:06 AM 0
Share

The suggested solution should work (e.g: uninstalling Build tools 24). Please note that Unity fixed this issue, so going forward it will no longer use build tools that are in "preview" stage (like version 24 is right now).

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

83 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I can't build a game for android 2 Answers

CommandInvokationFailure: Gradle build failed. when building app bundle 0 Answers

Gradle build faild. see... error "in unity 2020.1.4f1!!!" 0 Answers

Build error to android 3 Answers

Cannot build for Android 2 Answers


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