mkorman9 / admob-openfl

Google AdMob extension for OpenFL
MIT License
48 stars 12 forks source link

App crashes on android on initiation #18

Closed apands closed 10 years ago

apands commented 10 years ago

I compiled a simple openFl project but it crashed on a device, testing with logcat gave: java.lang.NoSuchMethodError: no static method with name='initAd' signature='(Ljava/lang/String;IIZ)V' in class Lorg/haxe/lime/GameActivity;

I'm not sure if it matters but there is no "initAd" and other ads functions in Export\android\bin\src\org\haxe\lime\GameActivity.java

I've added android-template to my project source folder and code to my project.xml.

apands commented 10 years ago

Okay, that was me not understanding that I should put it not in the source folder but project folder itself. Sorry, everything works fine!