0

I get CommandInvokationFailure error when attempting to build APK. I deleted my Android SDK Build Tool and then forced to update it though Unity but that didn't change anything. When I build with a new empty project, I don't get the error. What should I do?

I've also re-downloaded the SDK from here and updated path in Unity.

I have the following installed:

  • Google Play Services
  • I think I installed Android Support Library - I'm not sure.
  • Local Maven repository for Support Libraries (Also known as Android Support - Repository)
  • Google Repository
  • Android 6.0 (API 23) (this does not affect the min SDK version).
Dake
  • 289
  • 7
  • 17
  • Can you clean the project? – Eenvincible Jul 13 '16 at 21:41
  • try deleting 24.0.0 build tools folder from Android\sdk\build-tools (http://stackoverflow.com/questions/25348615/android-error-building-player-commandinvokationfailure-failed-to-re-package) – Bill Jul 13 '16 at 21:45
  • @quidproquo I already did that. Read my post again. – Dake Jul 13 '16 at 21:46
  • @Dake check to see if you've included the plugin twice? – Bill Jul 13 '16 at 21:49
  • Are you using Eclipse? – Darren Jul 13 '16 at 21:57
  • Can you post the error description? `CommandInvokationFailure` is a type, it should put some sort of explanation in your console when you click on the error. I'm guessing this has to do with AndroidManifest files having different MinimumApi levels. – Evan L Jul 13 '16 at 22:23

1 Answers1

1

There should be a file called version.xml in the folder google-play-services_lib/res/values of Google Play Services.

You need to copy this into the folder Assets/Plugins/Android/res/values/ of your Unity project.

Darren
  • 1,774
  • 4
  • 21
  • 32