Hi,
@fbricker I’m using your extension-admob and receive the following error:
C:\Development\Android SDK\tools\ant\build.xml:573: com.android.io.StreamException: java.io.FileNotFoundException:
C:\Users\Dean\OpenFL\Magic 8 Ball\bin\android\bin\deps\google-play-services_lib\AndroidManifest.xml (The system cannot find the file specified)
I’ve followed your installation instructions, installing google-play-services_lib and android-support-v4, and added to my project.xml:
<set name="openfl-legacy" />
<haxelib name="extension-admob" />
<android target-sdk-version="23" if="android" />
Haxe 3.2.1
actuate: [1.8.6]
box2d: [1.2.3]
extension-admob: [1.5.0]
extension-android-support-v4: [1.0.0]
extension-googleplayservices-lib: [1.1.0]
format: [3.2.1]
hxcpp: [3.2.205]
layout: [1.2.1]
lime-samples: [2.6.0]
lime-tools: [1.5.7]
lime: [2.9.1]
openfl-samples: [3.3.1]
openfl: [3.6.1]
svg: [1.0.9]
swf: [2.2.0]
Portion of my project code:
package;
import extension.admob.AdMob;
import extension.admob.GravityMode;
class Main extends Sprite
{
public function new()
{
super();
AdMob.enableTestingAds();
AdMob.initAndroid(BANNER_ID, INTERSTITIAL_ID, GravityMode.BOTTOM);
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e):Void
{
initialize();
resize (stage.stageWidth, stage.stageHeight);
stage.addEventListener (Event.RESIZE, stage_onResize);
stage.addEventListener (KeyboardEvent.KEY_UP, stageKeyUp);
AdMob.showBanner();
}
private function initialize():Void
{
// ... initialization code...
}
private function gameOver():Void
{
//... game over code...
// show every 10 games and > 2 minutes elapsed
AdMob.showInterstitial(120, 10);
}
private function resize (newWidth:Int, newHeight:Int):Void
{
// ... resize code...
AdMob.onResize();
}
private function stage_onResize(e:Event):Void
{
resize (stage.stageWidth, stage.stageHeight);
}
// ...
}
What am I doing wrong? I appreciate any help with this. Thanks.