android - CommandInvokationFailure error when building APK? -


i'm getting following error when build apk:

commandinvokationfailure: failed re-package resources. see console details.     c:\users\me\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/me/appdata/local/android/sdk\platforms\android-24\android.jar" -f bin/resources.ap_ --extra-packages 

i wish integrate "leaderboards" in app using google play services. should fix this?

what i've tried:

  • reinstalling google play services plugin.
  • updating sdk: see here. (tell me if did properly).
  • made sure have latest versions of "extras/android support repository" , "extras/google repository".
  • installed in sdk manager. see here.
  • updating unity.
  • restarting.
  • few minor changes.

this absolutely fix problem.

download google_play_services link below :

https://dl-ssl.google.com/android/repository/google_play_services_8298000_r28.zip

then unzip it.

after unzip copy file :

android-sdk/extras/google/google_play_services/

find version.xml file @ zip file:

android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/res/values/

and copy :

assets/plugins/android/res/values/

at unity folder

this work me.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -