Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | duke_meister | |
Old Version | Published before Godot 3 was released. |
Just wondering if anyone is successfully using Mavhod’s Admob module with 2.0.3. I followed the instructions from Github and I’m getting errors. It can’t seem to find the Google ads API’s.
Steps I performed, based on instructions here GitHub - Mavhod/GodotAdmob: Module Admob for Godot engine
- Downloaded the admob zipped folder from github
- Extracted the admob sub-directory as \godot\modules\admob
- Moved the file \godot\modules\admob\android\GodotAdMob.java into \godot\platform\android\java\src\org\godotengine\godot
- From command-line with VCVARS set up: \godot\platform\android\java>gradlew.bat build
Some of the errors:
H:\dev\godot\src\godot-2.0.3-stable\platform\android\java>gradlew.bat build
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:compileDebugJava
H:\dev\godot\src\godot-2.0.3-stable\platform\android\java\src\org\godotengine\godot\GodotAdMob.java:
7: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.*;
^
H:\dev\godot\src\godot-2.0.3-stable\platform\android\java\src\org\godotengine\godot\GodotAdMob.java:
24: error: cannot find symbol
private AdView adView = null;
^
symbol: class AdView
location: class GodotAdMob
H:\dev\godot\src\godot-2.0.3-stable\platform\android\java\src\org\godotengine\godot\GodotAdMob.java:
25: error: cannot find symbol
private AdView adViewW = null;
^
symbol: class AdView
location: class GodotAdMob
H:\dev\godot\src\godot-2.0.3-stable\platform\android\java\src\org\godotengine\godot\GodotAdMob.java:
26: error: cannot find symbol
private AdView adViewH = null;
^
symbol: class AdView
location: class GodotAdMob