Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
0
Question by liju · Jul 22, 2016 at 09:29 AM · android buildadmob

Google Admob - Android build problem

Hi, i am using Unity 4.7.1 and Google Mobile Ads Unity Plugin v3.0.5 After adding abmob plugin , i cant take build . Following error is showing

 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 D:\InstallLocation\Android_SDK\build-tools\23.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/InstallLocation/Android_SDK/platforms/android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.unity
 
 stderr[
 AndroidManifest.xml:17: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
 
 AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
 
 ]
 stdout[
 Configurations:
  (default)
 
 Files:
   drawable\app_icon.png
     Src: () res\drawable\app_icon.png
   values\strings.xml
     Src: () res\values\strings.xml
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
   Type drawable
     drawable\app_icon.png
 %|1354741607_5|%
   Type values
     values\strings.xml
 %|121225748_7|%
 Including resources from package: D:\InstallLocation\Android_SDK\platforms\android-23\android.jar
 applyFileOverlay for drawable
 applyFileOverlay for layout
 applyFileOverlay for anim
 applyFileOverlay for animator
 applyFileOverlay for interpolator
 applyFileOverlay for transition
 applyFileOverlay for xml
 applyFileOverlay for raw
 applyFileOverlay for color
 applyFileOverlay for menu
 applyFileOverlay for mipmap
 Processing image: res\drawable\app_icon.png
 %|291199635_8|%
     (new resource id app_icon from drawable\app_icon.png #generated)
 ]

Here is screenshots of Assets/Plugins/Android directory

unity1 u2

Here is screenshots of Android SDK Manager

sdk 1

sdk 2

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 ahaykal · Jul 22, 2016 at 10:06 AM 0
Share

I googled and got several answers like:

For those who are facing this problem, I solved it. You need to put the google_play_service_lib folder from the androidsdk\extra\google folder in plugins\android in order to make it work properly.

Or

Next, if you are planning on supporting Android, go to the menu option File > Chartboost - Android setup... and click the Setup button. This will link the Google Play Services library with your Unity project, which is required for using the Chartboost SD$$anonymous$$. This requires that the Google Play Services library is installed via the Android SD$$anonymous$$ $$anonymous$$anager. (See the Android Developer website for further instructions.)

Or

When I realized there were two of the same lib, I deleted the old. That still didn't fix it. I had to take the jar out of the lib folder and put directly int the Plugins/Android folder and that solved the issue for me.

So check them out too, maybe it will solve your problem!

2 Replies

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

Answer by liju · Jul 28, 2016 at 03:25 AM

I have got the solution . This may help who facing same problem

Right click on Assets > PlayServicesResolver folder and select Google Play Services > Resolve Client Jars to fix any dependency import issues.

Please refer this link

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/game-engines/TpqvTLvtDEc

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 saadali211 · Oct 21, 2017 at 03:51 PM

Watch this video to fix problems its in hindi language thou.

https://www.youtube.com/watch?v=JRGd7UG-WdE

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

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.

Follow this Question

Answers Answers and Comments

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

Related Questions

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat; - Unity Android Build Error 1 Answer

CommandInvokationFailure: Unable to convert classes into dex format - Unity 1 Answer

Google Admob (V.6.1.2) crashing Android game on device built with Unity 2020.3.19 1 Answer

Failed to re-package resources Admob integration 0 Answers

Google AdMob Banner Ad shows on unity debug editor but does not show on android apk build. 0 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