Error Admob : Could not find com.google.android.gms:play-services-ads-lite:12.0.1


#1

Anyone can help this issue : https://github.com/HaxeExtension/extension-admob/issues/41

Thanks


#2

I wonder if updating to a newer Android SDK also requires a newer version of admob? A mismatch in Google Play services?


#3

Yes, it’s because admob. Because I update my google play service to the latest version 49 instead of version 29.

Is there any change to update library admob and google play service so compatible with the latest version 49. Since at this moment only compatible with google play service version 29. I think version 29 already out of date.

Thanks.


#4

I’m also using latest Android SDK 28, not sure about play service version though, but have no problems.
How do you update to 49? I can test on my side.


#5

I’m using auto update from sdk manager.

Here’s my tools and extras current version :


ss

And my library current version with hxcpp 4.0.4 :
ss2


#6

I tried solution : https://stackoverflow.com/questions/50786718/could-not-find-com-google-android-gmsplay-services-ads-lite12-0-1?noredirect=1&lq=1

I changed extension-admob/1,6,4/dependencies/admobex/build.gradle into :
ss3

It’s give me different error :

and if I change it again into :
ss5

It’s give me error :

Note : My project build successful if I remove extension-admob library from project.xml.


#7

Here is the current settings in my Native Android Project : may be it can help you debug.

Here is the Kotlin plugin: it just got updated to 1.3.11 after AS 3.3 RC2

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.11"

Gradle Version :
'com.android.tools.build:gradle:3.3.0-rc02'

Google Services Plugin
classpath 'com.google.gms:google-services:4.1.0'

In Build.gradle
apply plugin:'kotlin-android'

Admob Dependency :
"com.google.android.gms:play-services-ads:17.1.1"

apply plugin: 'com.google.gms.google-services'

Note that now Admob SDK asks you to enter your app id (from Admob pannel) to be in Manifest.xml
Like this:

    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="ca-app-pub-0000000000~0000000000" />

#8

It’s still give the same error

My extension-admob/1,6,4/dependencies/admobex/build.gradle

Did anyone use extension-admob 1.6.4 with all latest android sdk version like my version above and build successful?

Because I’m really stuck here.


#9

Even I tried extension-googleplaygames : https://github.com/HaxeExtension/extension-googleplaygames

My build error too

Maybe both extension version already out of date?

Is there any change to update both extension-admob and extension-googleplaygames, since last update was 2 years ago (except fixed JNI issue 6 month ago)?


#10

Also Android NDK that work only until version 15.
Version 16, 17, 18 Build failed.

Android NDK archieve : https://developer.android.com/ndk/downloads/older_releases
Lime setup Android : https://lime.software/docs/advanced-setup/android/

Note : I tried all version NDK 12, 13, 14, 15 and it’s always give same Error Could not find com.google.android.gms:play-services-ads-lite:12.0.1 when I’m adding extension-admob (1.6.4) / extension-googleplaygames. Without extension-admob / extension-googleplaygames, build was successful.


#11

Hello @pozirk, have you tried to update your google play service and other like my version above?

Was extension-admob 1.6.4 and extension-googleplayservices-basement 1.1.0 build successful?


#12

Hey!
Sorry, still had no time for this.


#13

Hello, still no news about this issue?