• 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
0

Answer by RChrispy · Sep 30, 2015 at 07:23 AM

Did you try to " reimport all"?

And open the Android SDK manager and download also some older versions of the tools and so on. Because unity does not always like all versions it would pick the one it can use.

Tried to build an empty android projekt on the same system?

Comment
Add comment · Show 3 · 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 · Sep 30, 2015 at 01:07 PM 0
Share

I think I had tried reimport all (I did so many things), but I'll do it again for safe measures.

I do have two version of the Build-Tools, but is there something I need to do in order for Unity to use one of them specifically?

avatar image RChrispy Matthew_Ostil · Sep 30, 2015 at 02:55 PM 0
Share

Unity uses the "Newest" version it understands. The Unity devs set them inside the engine themselves in their updates. (its like a whitelist) There might be a config somewhere I am not sure.

If Reimport All fixed your problems mark this as the right answer please so others with similar problems can see it! :)

avatar image Matthew_Ostil RChrispy · Sep 30, 2015 at 05:05 PM 0
Share

I just gave it a try, and nothing. I'm still getting the aapt.exe package error.

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
0

Answer by siddharth3322 · Feb 04, 2016 at 08:18 AM

Don't remove anything from current project. Just copy some xml files from local sdk directories those contain above missing ids.

For me I imported 4 xml files from sdk directory and pasted it on GoogleMobileAdsPlugin values folder.

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 reinaldozhang · Apr 06, 2016 at 05:31 AM 0
Share

Hey i am also facing the same problem by using Ad$$anonymous$$ob v3.0.3. Can you please be more specific with the solution? @siddharth3322. Currently, i am using Unity 5.3.2p and also Facebook SD$$anonymous$$. I tried deleting the google-play-services-lib folder but it only gives me another dex conversion error during build.

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

  • 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

GUI occlusion for TouchScript on Android 0 Answers

Create a in-App Purchases for Android? 0 Answers

Accessing Data from a Android java class 1 Answer

IOException : Failed to Move File / Directory 4 Answers

Android & iOS Push Notifications 3 Answers


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