Zum Hauptinhalt springen
••••••••••••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

[Help] Issues integrating AdMob with Expo (Kotlin version conflict)

Hey folks! I'm building a simple study app using Expo, starting from a completely blank template. The only thing I’ve added so far is an AdMob banner component …

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Hey folks!



I'm building a simple study app using Expo, starting from a completely blank template. The only thing I’ve added so far is an AdMob banner component using react-native-google-mobile-ads.



Here's what I did:



Created a blank Expo app



Added a basic Banner component



Imported:



import { BannerAd, BannerAdSize, TestIds } from 'react-native-google-mobile-ads';



And passed the correct banner ID.



Added this to my app.json:



"react-native-google-mobile-ads": {

"android_app_id": "xxxxxxxxxxxxxxxxxxxxxxx",

"ios_app_id": "xxxxxxxxxxxxxxxxxxxxxxx"

}



Then I ran:



npx expo run:android

And boom - got hit with a Kotlin version error:



kotlin_moduleModule was compiled with an incompatible version of Kotlin. `The binary version of its metadata is 2.1.0, expected version is 1.9.0.




Task :react-native-google-mobile-ads:compileDebugKotlin FAILED`

I tried changing the Kotlin version in build.gradle to 2.1.0, but that opened up a whole new can of worms with more errors. I also tried using expo-build-properties to set Kotlin versions, but still no luck.




Has anyone managed to get AdMob working with a recent Expo setup? Any working guides or examples would be super appreciated.



Current versions:



"expo": "~52.0.43"

"react": "18.3.1"

"react-native": "0.76.9"

"react-native-google-mobile-ads": "^15.0.0"



Thanks in advance!

🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar · Exploit-Belege
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten [Help] Issues integrating AdMob with Expo (Kotlin version conflict)

Thematisch verwandte Begriffe: Help, Issues, integrating, AdMob · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag