Giter Club home page Giter Club logo

Comments (15)

JEOptimal avatar JEOptimal commented on July 21, 2024 1

I just wanted to update this so everyone knows. That the latest version of the official admob-plugin works perfectly with play game services!

No need to fix the jar files anymore, plus you need the new one to continue using admob after august(2014).

Use the admob-plugin from this location:
https://github.com/googleads/googleads-mobile-plugins/

Best Regards!

from play-games-plugin-for-unity.

btco avatar btco commented on July 21, 2024

Could you include additional details? The dex is probably failing because both our JAR and the AdMob jar are probably including the same libraries, leading to duplicates. Could you please attach the full logs here? Thanks!

from play-games-plugin-for-unity.

JEOptimal avatar JEOptimal commented on July 21, 2024

I had this issue as well. But there is a simple temporary fix for this.
As jar-files are pretty much zip files. You can do the following:
Open the google-play-services.jar in ..\Assets\Plugins\Android\google-play-services_lib\libs

This one contains the same references as GoogleAdMobAdsSdk-6.4.1.jar, which you need for admob.

So delete these files from google-play-services.jar, as the game service is not using them.

After that everything will work in the build process! Also remember to forward the native events to the correct process, or the ads won't be clickable, in the androidmanifest.

Best Regards,
Erik

from play-games-plugin-for-unity.

karonte84 avatar karonte84 commented on July 21, 2024

I'm having the same issue, if I have "GoogleAdMobAdsSdk-6.4.1.jar" and "google-play-services.jar" in the same project.
JEOptimal I don't understand how do you fix it

from play-games-plugin-for-unity.

g012 avatar g012 commented on July 21, 2024

He said he opened the google services lib jar file as zip, and deleted the subfolders concerning ads in it. Then the conflicts with admob are gone.
The issue is that admob has been merged into the latest version of the google services lib, so if you use both, there's duplicates.

But in any case I don't think it's OK to do that, because from what I see on Google's website, they're now only allowing the new google services lib for ads, and not admob anymore. Not sure your app will pass if you use admob standalone.

from play-games-plugin-for-unity.

FreeSst avatar FreeSst commented on July 21, 2024

Also remember to forward the native events to the correct process, or the ads won't be clickable, in the androidmanifest.

Can you explain how to do that ?
I use my own jar plugin to integrate AdMob and other ad providers. I removed GoogleAdMobAdsSdk, and made changes in the code to use ads from Play Services jar, all compiles good, I see ad banner, but it not clickable.
I added in Manifest:
meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true"
But with no result.

from play-games-plugin-for-unity.

danielsb avatar danielsb commented on July 21, 2024

This could help:
http://forum.unity3d.com/threads/195169-Google-Admob-plugin-for-Unity-ad-is-not-clickable

I had the same problem and that solution fixed it.

from play-games-plugin-for-unity.

Gjjansen avatar Gjjansen commented on July 21, 2024

The solution of JEoptimal works perfectly. Thanks!

from play-games-plugin-for-unity.

kunal2619 avatar kunal2619 commented on July 21, 2024

Did implement solution given by JEoptimal but still cannot solve the issue. Other than the two ads folder in the google-play-services.jar is there anything else that has to deleted to get this working?

from play-games-plugin-for-unity.

ngothanhtai avatar ngothanhtai commented on July 21, 2024

@JEOptimal & @Gjjansen : Can you guys share me the google-play-services.jar or tell us what to delete? I tried to delete ads folder but it didn't work. Please help!

from play-games-plugin-for-unity.

giangqaz avatar giangqaz commented on July 21, 2024

here is the delete method

http://stackoverflow.com/questions/16806112/how-to-remove-class-file-in-jar-file-and-change-it-with-my-own-implementation

from play-games-plugin-for-unity.

vaibahv7888 avatar vaibahv7888 commented on July 21, 2024

@JEOptimal thanks a lot..!! it worked for me 👍

from play-games-plugin-for-unity.

jaereis avatar jaereis commented on July 21, 2024

Hi, I downloaded the zip file( the link above admob plugin) and I dont know what to this with this files, can anyone help me to add correctly this in my game and all the steps to config the admod plugin, if anyone can send me a tutorial , please sent anyone that is dont up to date!

from play-games-plugin-for-unity.

AK541 avatar AK541 commented on July 21, 2024

Simply remove your old Java Installation from Computer, Double Check you have installed multi Java installation in computer.

from play-games-plugin-for-unity.

firatercis avatar firatercis commented on July 21, 2024

@JEOptimal thanks a lot. It worked for me. Actually, in the new version of the Google Play Games plugin, they seperated play-services-ads.aar as a different aar file. Removing it just from build (uncheck the Android in import settings) solves the problem.

from play-games-plugin-for-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.