[SOLVED] fail Construct 2 with admob plugin


#6

if you do not want to use cocoon ads try cordova ads http://cranberrygame.github.io/ plugin works on phonegap I also think about cocoon


#7

Same problem on my end, and yes it’s the CocoonAds plugin (more the AdMob native Ads adapter).
Seems it’s missing some dependencies.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.
Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/google/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.pom
file:/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux/extras/android/m2repository/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
file:/workspace/platforms/android/sdk-manager/com/google/android/gms/play-services-ads/15.0.1/play-services-ads-15.0.1.jar
Required by:
project :

@Blue_Sialia any chance to have this checked?
Thanks a lot!


#8

please how i can do it ? i need help because i want to post new indie games :frowning: send me a tutorial please


#9

In your C2 project :
You must install “Canvas+” plugin. Then, add “if Canvas+” on each “show ads” event.
In Cocoon settings:
Choose Cocoon 2.1.0. Then install admob native for android. Open config tab, edit your admob plugin version as this page --> http://blog.cocoon.io.


In-App Purchases, Billing Keys and Steak
#10

Hi @mazteen19

Yes this solves the problem by using the old version. But this version is not in line with the GDPR guidelines.
It’s essential that the new version is working or you risk to get sued.

Hopefully Ludei will address this.

Thanks!


#11

sorry but this plugin not work :confused:


#12

Thanks for your explanation. Many times i try Cocoon latest version, but sometimes work fine, sometimes error build or blackscreen.


#13

You’re welcome. Yes you are right. For the last few month, the compiler is very unstable.
Hopefully this will change.

I’m waiting since May, 2018 to update my games to apply to the GDPR, but no success so far.

Best,
Andy


#14

Hi… thanks for the ideia butao when i try compile… the Phonegap tell me to remove the Phonegap plug-in. … you have a example of a config.XML? Thanks


#15

I Will try thanks … i Will reply soon


#16

this plugin does not work I have not found a solution to make it work… you have a idea?


#17

Hi Guys,

Anyone found the solution yet?
tried to compile with all cocoon versions.
used new cocoon ads plugin also…everytime same result

Everything works fine without cocoon ads plugin.

Thanks


#18

Hi!
The problem is, that the “Native Ads Plugin for AdMob” does not find its dependencies.

> Could not resolve all dependencies for configuration ‘:_armv7DebugApkCopy’.

@Blue_Sialia any updates on this problem yet?
Thank you!


#19

i know the solution… but i’m making tests… because the construct 2 any apps don’t work i don’t know why… see ya


#20

Hi,
the problem is the Native Ads plugin, the issue is not related to Construct 2.
To bypass the issue, you can switch to an older version for now.


#21

THE SOLUTION IS… UPDATE YOUR CONSTRUCT 2 TO THE LAST VERSION r265.

AND FOLLOW THE STEPS FROM THIS VIDEO


#22

i make my construct 2 game in android studio but audio is not playing. other all things, admob and graphics are running well but only issue is audio. can you guide me how to set audio in android studio 3


#23

Hey dear i tried your steps but still it showing black screen when i added the Admob Plugin to it… any other solution?


#24

yes i have black screen are there any other working admob plugins?


#25

I only know this one that works more than most on Cordova projects: <plugin name=“admob” spec="*"/>. It doesn’t seem to support Construct 2 though, unless I’m missing something on implementing it on Construct 2.