Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
0
Question by Highwalker · Apr 28, 2016 at 08:45 PM · build errorfailureconsole errorserror-building-playerpackaging

CommandInvokationFailure: Failed to re-package resources. I've tried everything! Dx

So I had a problem a few days ago. That my SSD was full. I don't really store a lot on it, only some core programs and the likes. I also had the Android SDK on it. And that took up some 65GB. So, not finding anything else to move which would free up a lot of space. I decided to move the Android SDK to my hard drive. I uninstalled it using the android sdk manager. And reinstalled it on a folder in my hard drive. Only now, when I build the apk. I get this error when it tries to package the resources

 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 E:\AndroidSDK\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "E:/AndroidSDK\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.example.games.mainlibproj:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.plus:android.support.v4:com.unity3d.ads.android -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-base-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-basement-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-drive-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-games-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-nearby-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\play-services-plus-8.4.0\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\support-v4-23.1.1\res" -S "C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res"
 
 stderr[
 
 ]
 stdout[
 Configurations:
  (default)
 
 Files:
   drawable\unityads_background_button_pause.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_background_button_pause.xml
   drawable\unityads_icon_play.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_play.xml
   drawable\unityads_icon_speaker_base.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_base.xml
   drawable\unityads_icon_speaker_triangle.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_triangle.xml
   drawable\unityads_icon_speaker_waves.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_waves.xml
   layout\unityads_button_audio_toggle.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml
   layout\unityads_button_pause.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml
   layout\unityads_view_video_paused.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_paused.xml
   layout\unityads_view_video_play.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml
   values\values.xml
     Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\values\values.xml
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
   Type drawable
     drawable\unityads_background_button_pause.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_background_button_pause.xml
     drawable\unityads_icon_play.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_play.xml
     drawable\unityads_icon_speaker_base.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_base.xml
     drawable\unityads_icon_speaker_triangle.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_triangle.xml
     drawable\unityads_icon_speaker_waves.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\drawable\unityads_icon_speaker_waves.xml
   Type layout
     layout\unityads_button_audio_toggle.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_audio_toggle.xml
     layout\unityads_button_pause.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_button_pause.xml
     layout\unityads_view_video_paused.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_paused.xml
     layout\unityads_view_video_play.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\layout\unityads_view_video_play.xml
   Type values
     values\values.xml
       Src: () C:\Users\Highwalker\Documents\ReeferMadness\Temp\StagingArea\android-libraries\unityads-release\res\values\values.xml
 Including resources from package: E:\AndroidSDK\platforms\android-23\android.jar
 applyFileOverlay for drawable
 trying overlaySet Key=ic_plusone_medium_off_
 ]
 

I saw several posts on similar invokation failures. But none of the extra details match my error. And I've tried every single thing which was suggested to fix this error. From further research, I found tht it might be due to some xml is probably refrencing the old sdk path somewhere. But I can't find a path like that anywhere in any of the xml files. And I'm just completely stumped on how to fix it. Please help. This has taken up days of my time.

Comment
Add comment · Show 5
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 jgodfrey · Apr 28, 2016 at 09:52 PM 0
Share

Which drive is which? I assume "C" is your SSD (where the Android SD$$anonymous$$ was installed) and "E" is the new location of the SD$$anonymous$$?

avatar image Highwalker · Apr 28, 2016 at 10:02 PM 0
Share

Yup, C is the SSD, E is the HDD. And that is indeed the new location of the SD$$anonymous$$.

avatar image Highwalker · Apr 29, 2016 at 12:04 AM 0
Share

Hate to be a bumper. But I really need help with this. So -Bump-.

avatar image jgodfrey · Apr 29, 2016 at 12:10 AM 0
Share

I really don't know, but I'll take a stab just to give you another bump...

Do you have a custom Android$$anonymous$$anifest.xml file anywhere in your project? If so, does removing it make a difference?

avatar image Highwalker · Apr 29, 2016 at 12:52 AM 0
Share

I have several android.xml. But I never touched any of them so I don't think they are custom. Do you know if they're automatically generated of missing? Cause in that case simply deleting them might actually work... Guess I'll give that a shot.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by AlbinoStoic · Apr 29, 2016 at 01:25 AM

Go into %appdata% on Windows and delete all .android folders you see (in Roaming , and up one folder in Local and LocalLow . These each represent a portion of the Android SDK.)

You cannot just "move the SDK" to another hard drive, it must be installed there (the resgistry needs to know where various utilities like adb.exe are located.) You should delete the copied folder, and install the SDK fresh on your new disk.

If you need even more space free consider:
CCleaner with CCEnhancer (get the free versions).
https://www.piriform.com/ccleaner/download/standard
https://singularlabs.com/software/ccenhancer/download-ccenhancer/

Edit Normally when something confusing and inexplicable happens, I will use the Unity Editor 5 Packaging system to export my entire Scene + Dependencies (90% of my project if I have no unused assets, e.g: lean project); and import them into a new project. Sometimes something just broke along the way.

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 jgodfrey · Apr 29, 2016 at 01:28 AM 0
Share

According to the OP, the SD$$anonymous$$ was uninstalled and reinstalled...

"I decided to move the Android SD$$anonymous$$ to my hard drive. I uninstalled it using the android sdk manager. And reinstalled it on a folder in my hard drive."

avatar image Highwalker · Apr 29, 2016 at 02:14 AM 0
Share

I don't have any android files in either roa$$anonymous$$g or local :( I'll try the export import thing. Thanks.

avatar image Highwalker · Apr 29, 2016 at 03:50 AM 0
Share

Exporting and re-importing did not work :'(

avatar image
0

Answer by arunkarnann · Jun 07, 2016 at 06:15 AM

Same error and more or less same error logs for I have been using Facebook SDK and Unity Ads.Initially, there was a problem with "minsdk" in Android manifest , I fixed that. After that this error took place.The things I did follow

Step 1: Deleted SDK version 23 Preview in SDK manager. what to delete

Step 2: Restart SDK manager.

Step 3: Log out Unity Services (if you have unity Ads enabled).

Step 4: Reimport All in Unity3d.

Step 5: Log in Unity Services and enable Ads now.

Thats all I did and the problem fixed.Hope this helps .

Comment
Add comment · 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

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

58 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

Related Questions

Error only appears when it builds 1 Answer

No errors in editor but "buildslave" errors when game is built 0 Answers

Build failure ,failure to build 0 Answers

Failed to Build on x64 (IL2CPP) Using 2020.322f1, Anyone can help 1 Answer

Failed to repackage resources 0 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