- Home /
Android - Error building Player: CommandInvokationFailure: Failed to re-package resources
I know many people have had issues with this when building for android and using the Google play Unity plug in.
There are many threads about this issue and I have spent hours trying to solve it following them. But none of them worked for me. These are some of the things I tried...
http://stackoverflow.com/questions/20728725/cant-use-google-play-services-on-unity-java-plugin http://stackoverflow.com/questions/25348615/android-error-building-player-commandinvokationfailure-failed-to-re-package http://answers.unity3d.com/questions/849592/error-building-player-commandinvokationfailure-fai-5.html http://answers.unity3d.com/questions/675074/android-error-building-player-commandinvokationfai.html
Most of them talk about moving the google_play_service_lib folder from the androidsdk\extra\google folder to plugins\android in Unity to make it work. I have tried this many times but it doesn't work.
To cover some of the basics. I am using Unity 5 and on Mac OS X Yosemite. My java SDK and Android SDK's are up to date.
Also setting up the Unity Google Play Plugin for android also worked and I already have it building for iOS.
I do get this strange error in my Android SDK but I don't think that is the issue here...
does my plugins file in Unity look right?
[1]: /storage/temp/61549-screen-shot-2016-01-08-at-123107-pm.png
[2]: /storage/temp/61550-screen-shot-2016-01-08-at-123605-pm.png
Thanks for the help!
Your answer
Follow this Question
Related Questions
Google Play ShowLeaderBoard(); won't show 0 Answers
Google play code I don't know where to use it 0 Answers
Google Play showing log in dialog but not loggin in. 0 Answers
Unity Google Play Service Plugin Social.localUser.Authenticate(…) App Crash 1 Answer
Problem with Google Play Game Services: Invalid Classname 1 Answer