Oh and you have to really make sure that those lines are not broken. They need to be one line. Double click the AndroidManifest.xml file in Android studio to check there's no line break / carriage return in there as this caused errors for me many times.
EDIT - Should look like:
<!-- google play --><meta-data android:name="com.google.android.gms.version" android:value="<a href="https://forum.gideros.rocks/profile/integer%2Fgoogle_play_services_version%26quot" rel="nofollow">@integer/google_play_services_version"</a>; />
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
And not...
<!-- google play --><meta-data android:name="com.google.android.gms.version"
android:value="<a href="https://forum.gideros.rocks/profile/integer%2Fgoogle_play_services_version%26quot" rel="nofollow">@integer/google_play_services_version"</a>; />
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
no field package.preload['ads'] no file './ads.lua' no file '/usr/local/share/lua/5.1/ads.lua' no file '/usr/local/share/lua/5.1/ads/init.lua' no file '/usr/local/lib/lua/5.1/ads.lua' no file '/usr/local/lib/lua/5.1/ads/init.lua' no file './ads.so' no file '/usr/local/lib/lua/5.1/ads.so' no file '/usr/local/lib/lua/5.1/loadall.so'
Comments
This caused me a few headaches but checkout my little guide here
http://giderosmobile.com/forum/discussion/5922/solved-problem-running-admob-on-android/p1
Let me know if you hit any problems
I get error at point 14)
EDIT - Should look like:
First add this to your main.lua file
You were right I did not have added Google Play
So if you add plugin to Android, you can test it only on Android
no field package.preload['ads']
no file './ads.lua'
no file '/usr/local/share/lua/5.1/ads.lua'
no file '/usr/local/share/lua/5.1/ads/init.lua'
no file '/usr/local/lib/lua/5.1/ads.lua'
no file '/usr/local/lib/lua/5.1/ads/init.lua'
no file './ads.so'
no file '/usr/local/lib/lua/5.1/ads.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
either libads.so file is missing, or you did not place System.load("ads") in main activity