• 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 /
avatar image
5
Question by Matthew_Ostil · Sep 30, 2015 at 02:29 AM · android

Unity 5 Android Build - Failed to re-package resources

Hi UnityAnswers,

I currently have the Google Play Services plugin installed and working with my project. Tonight I attempted to add the AdMob plugin and immediately began running into this error whenever I ran a build. Even after removing the plugin and reverting SVN to the build prior to even installing it, the error remains.

I've searched Google for the last three hours (seriously, purple links everywhere) and have tried many things to no avail. It's driving me absolutely mad.

Here's my setup:

Unity 5.2.0f3

Android SDK Tools 24.4

Android SDK Platform-Tools 23.0.1

Android SDK Build-Tools 22.0.1 & 21.1.2

I've read that it has something to do with the aapt.exe file being moved to the Build-Tools and thus has to be moved (shortcutted?) to the the Platform-Tools. I tried this for both of the versions I have installed (listed above).

I also tried removing the multiple AndroidManifest.xml's that exist in the android folder, admob, google play etc. I also read something about the version.xml being messed up, though I was unsure how to test that.

Anyway, if anyone has any insight into this, I'd be really grateful!

Here is the error:

 CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Program Files (x86)\Android\android-sdk\build-tools\22.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.unity:com.google.example.games.mainlibproj -S "C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res"
 
 stderr[
 AndroidManifest.xml:17: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
 
 ]
 stdout[
 Configurations:
  (default)
  mdpi-v4
  tvdpi-v4
  hdpi-v4
  xhdpi-v4
  xxhdpi-v4
  ca
  da
  fa
  ja
  nb
  de
  af
  bg
  th
  fi
  hi
  vi
  sk
  uk
  el
  nl
  pl
  sl
  tl
  am
  in
  ko
  ro
  ar
  fr
  hr
  sr
  tr
  cs
  es
  it
  lt
  pt
  hu
  ru
  zu
  lv
  sv
  iw
  sw
  fr-CA
  lo-LA
  en-GB
  bn-BD
  et-EE
  ka-GE
  ky-KG
  km-KH
  zh-HK
  si-LK
  mk-MK
  ur-PK
  sq-AL
  hy-AM
  my-MM
  zh-CN
  pa-IN
  ta-IN
  te-IN
  ml-IN
  en-IN
  kn-IN
  mr-IN
  gu-IN
  mn-MN
  ne-NP
  pt-BR
  gl-ES
  eu-ES
  is-IS
  es-US
  pt-PT
  en-AU
  zh-TW
  ms-MY
  az-AZ
  kk-KZ
  uz-UZ
 
 Files:
   color\common_signin_btn_text_dark.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\common_signin_btn_text_dark.xml
   color\common_signin_btn_text_light.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\common_signin_btn_text_light.xml
   color\wallet_primary_text_holo_light.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\wallet_primary_text_holo_light.xml
   color\wallet_secondary_text_holo_dark.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\wallet_secondary_text_holo_dark.xml
   drawable\cast_ic_notification_0.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_0.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_0.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_0.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_0.png
   drawable\cast_ic_notification_1.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_1.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_1.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_1.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_1.png
   drawable\cast_ic_notification_2.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_2.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_2.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_2.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_2.png
   drawable\cast_ic_notification_connecting.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\cast_ic_notification_connecting.xml
   drawable\cast_ic_notification_on.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_on.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_on.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_on.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_on.png
   drawable\common_full_open_on_phone.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_full_open_on_phone.png
     Src: (tvdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-tvdpi\common_full_open_on_phone.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_full_open_on_phone.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_full_open_on_phone.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_full_open_on_phone.png
   drawable\common_ic_googleplayservices.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_ic_googleplayservices.png
   drawable\common_signin_btn_icon_dark.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml
   drawable\common_signin_btn_icon_disabled_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_dark.9.png
   drawable\common_signin_btn_icon_disabled_focus_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
   drawable\common_signin_btn_icon_disabled_focus_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_light.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_focus_light.9.png
   drawable\common_signin_btn_icon_disabled_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_light.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_light.9.png
   drawable\common_signin_btn_icon_focus_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_focus_dark.9.png
   drawable\common_signin_btn_icon_focus_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_light.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_focus_light.9.png
   drawable\common_signin_btn_icon_light.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml
   drawable\common_signin_btn_icon_normal_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_normal_dark.9.png
   drawable\common_signin_btn_icon_normal_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_light.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_normal_light.9.png
   drawable\common_signin_btn_icon_pressed_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_pressed_dark.9.png
   drawable\common_signin_btn_icon_pressed_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_light.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_pressed_light.9.png
   drawable\common_signin_btn_text_dark.xml
     Src: () C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml
   drawable\common_signin_btn_text_disabled_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_dark.9.png
   drawable\common_signin_btn_text_disabled_focus_dark.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_dark.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_dark.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_dark.9.png
     Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_focus_dark.9.png
   drawable\common_signin_btn_text_disabled_focus_light.9.png
     Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
     Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_light.9.png
     Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop\trunk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_b<message truncated>

Comment
Add comment · Show 1
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 Abhijit-Mukherjee · Nov 27, 2015 at 10:05 AM 0
Share

I am having the same problem ! . Please help me with solution !

http://forum.unity3d.com/threads/i-am-stuck-need-help-not-able-to-build-unity-5-2-android-with-google-play-game-service.370261/

12 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Matthew_Ostil · Oct 01, 2015 at 01:06 PM

For those with the same issue, I reverted my project back before I had added admob and messed around with it, and then I followed this tutorial exactly:

https://www.youtube.com/watch?v=q5T98X3EawA

The main things I noticed that I didn't do were the first time (when it didn't work):

  1. Remove the theme line from the androidmanifest.xml in the admob plugin (not the main android library one. You should have two if you're using Google Play Services).

  2. Make a res>version folder inside your admob folder and then copy the version.xml from the same path but in the Google Play plugin.

Anyway, glad that's done. :)

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
avatar image
6

Answer by digzou · Oct 01, 2015 at 12:26 PM

I was facing the same problem. I solved it by commenting out that tag in the manifest. Didn't affect my game in any noticeable way.

   <!-- InAppPurchase Activity
     <activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
         android:theme="@style/Theme.IAPTheme"/> -->

Comment
Add comment · Show 1 · 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 Matthew_Ostil · Oct 01, 2015 at 12:55 PM 0
Share

Yes! This is it!

I found a tutorial online last night and just followed it to the letter, and the main thing it did differently was remove that theme line. :)

avatar image
6

Answer by XiLiT · Jun 23, 2016 at 02:14 PM

Just delete the file 24 from C:...\sdk\build-tools !! :D

maybe is some kind of incompatibility with the latest tools. Good Luck

Comment
Add comment · Show 5 · 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 dylanpierce · Jun 28, 2016 at 05:31 PM 0
Share

Worked for me as well, but the exact directory I deleted was 24.0.0 and I had to restart Unity for the change to take effect.

avatar image Vito1316 · Aug 03, 2016 at 10:26 AM 0
Share

Thank you a lot! Worked for me!

avatar image Ice_MJ · Aug 08, 2016 at 09:38 AM 0
Share

save my life, I have tried so many ways but it just cannot build my apk, finally! Thanks a lot

avatar image Imenbm · Mar 07, 2017 at 01:32 PM 0
Share

thx you save my life :D

avatar image ColonL · Nov 07, 2017 at 01:14 PM 0
Share

alt text

I got 25.0.3 and 26.0.2 please tell me what should i do? Please Help me!

avatar image
2

Answer by ssdigi · Apr 20, 2016 at 04:51 AM

The problem i found was that i had installed the SDK (preview) tools that unistalled the ones at the top of the sdk manager. i uninstalled the preview ones and installed the old ones. and it worked.

Comment
Add comment · Show 1 · 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 Ayhem · Apr 24, 2016 at 07:37 PM 1
Share

I had the same error, i just deleted version 24 preview and it worked!!

avatar image
2

Answer by ethanliew · Jul 12, 2016 at 08:00 AM

I deleted ....\android-studio-sdk\build-tools\24.0.0-rc or relevant version or greater than 23.0.3

Unity 5 ( 2016 Jul ) support build-tools ver 23.0.3 ( max ). If you updated any latest android sdk, you may delete folders greater than ver 23.0.3

It works for me. Hope it helps.

Comment
Add comment · Show 1 · 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 Sal7_one · Aug 03, 2016 at 03:58 AM 0
Share

just logged in to say thank you you're a legend!

deleted 24 preview and 24 worked like a charm m8

  • 1
  • 2
  • 3
  • ›

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

52 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

Related Questions

mouseOrbit script for android 0 Answers

Bizarre Missing Assembly 'Common' Error 0 Answers

Why does my pause & quit menus appear when I load next level? 0 Answers

Android equivalent of code 0 Answers

invoke keyboard on android? 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