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 /
  • Help Room /
avatar image
0
Question by ScottUnityNoob · Mar 15, 2017 at 03:34 AM · androidandroid sdkcommandfailure

CommandInvokationFailure failed to re-package resources - Google VR

Hello, I've been troubleshooting this error to no avail. Any help would be greatly appreciated!

CommandInvokationFailure: Failed to re-package resources. C:\Users\Scott\AppData\Local\Android\Sdk\build-tools\25.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Scott/AppData/Local/Android/Sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.gvr.permissionsupport:com.google.vr.cardboard:vr.gvr.platform.unity -S "C:\Users\Scott\Desktop\ohmy\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\res" -S "C:\Users\Scott\Desktop\ohmy\Temp\StagingArea\android-libraries\gvr_android_common\res" -S "C:\Users\Scott\Desktop\ohmy\Temp\StagingArea\android-libraries\unitygvractivity\res"

stderr[ AndroidManifest.xml:30: error: No resource identifier found for attribute 'enableVrMode' in package 'android' stdout[ Configurations: (default) Files: AndroidManifest.xml Src: () AndroidManifest.xml ]

There's also a list of "Resource Dirs" Etc. (not sure if I should include this also.)

First I was getting an Error that said "Cannot merge android manifests" I opened the scripts and changed the values to match the API level in the build settings. That error is gone but, now I get this error (mentioned above).

I tried installing and uninstalling different Android SDK Build Tools. but they all give me this same error.

Thanks in advance!

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
0

Answer by liortal · Mar 15, 2017 at 05:28 AM

stderr[ AndroidManifest.xml:30: error: No resource identifier found for attribute 'enableVrMode' in package 'android' stdout[ Configurations: (default) Files: AndroidManifest.xml Src: () AndroidManifest.xml ]

You are referencing a resource named enableVrMode in your AndroidManifest.xml (specifically, in line 30), but there is no resource defined with that name.

Comment
Add comment · Show 2 · 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 ScottUnityNoob · Mar 15, 2017 at 07:32 PM 0
Share

Hi, thanks so much for your reply!

I just deleted the "Android$$anonymous$$anifest-Daydream" .xml & that error went away.

I already set the "PlayerSettings - $$anonymous$$in API level to "19" because the "Android$$anonymous$$anifest-Cardboard" says $$anonymous$$SD$$anonymous$$Version = 19.. this seemed to get rid of the "Cannot $$anonymous$$erge $$anonymous$$anifests Error"

Then, I get a new error that basically says "SD$$anonymous$$ Level in the Android$$anonymous$$anifest-$$anonymous$$AIN is 23, while the library uses 24.

I can't access the Android$$anonymous$$anifest-$$anonymous$$ain from inside Unity? So, I found it in the project folder and opened it with visual studio, changed the 23 to 24, and saved.

Now, I get another error "$$anonymous$$oving file failed temp/StagingArea/Data/Level0: Access is denied.

I click cancel and I get more UnauthorizedAccessException Errors.

I'm after trying everything in my power, should I just revert to the previous version of Unity?

strong text

avatar image ScottUnityNoob · Mar 16, 2017 at 08:29 PM 0
Share

Hi, thanks so much for your reply! I have 3 different Android$$anonymous$$anifest.xml's after importing the Google VR package. There's "Android$$anonymous$$anifest", "Android$$anonymous$$anifest-Cardboard", & "Android$$anonymous$$anifest-Daydream".

I deleted the Daydream xml, and the error I was getting seems to be gone. Also the "Android$$anonymous$$anifest" & "Android$$anonymous$$anifest-Cardboard" are identical to each other, I deleted the "Android$$anonymous$$anifest", so now I'm left with just the "Cardboard one".

But now I get this error.

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. C:\Program Files\Java\jdk1.8.0_74\bin\java.exe -Xmx2048$$anonymous$$ -Dcom.android.sdkmanager.toolsdir="C:/Users/Scott/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[

] stdout[ Warning: [Temp\StagingArea\Android$$anonymous$$anifest-main.xml:12, C:\Users\Scott\Desktop\ohmy\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\Android$$anonymous$$anifest.xml:3] $$anonymous$$ain manifest has but library uses targetSdkVersion='24' ] exit code: 1 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.HostView:OnGUI()

I opened the "Android$$anonymous$$anifest-$$anonymous$$ain" and changed the "Target SD$$anonymous$$ version" to 24, like it says to do. But every time I attempt to build it, "Target SD$$anonymous$$ version" reverts to 23 for some reason! Very frustrating. I'm stuck!

Thanks!

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

151 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 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

What to do if my game became buggy due to switching my scripting backend to IL2CPP? 0 Answers

Couple of Android Questions 1 Answer

"Set-up Android SDK path to make Android remote work" 2019.1.1 8 Answers

Phone not found 1 Answer

Problems in Android build when running game 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