Same error during compiling: "...
class file for com.google.android.gms.ads.AdView not found"
I started with the first post here:
https://www.b4x.com/android/forum/threads/admob-tutorial-add-ads-to-your-application.7300/
I installed the latest SDK . Then I realized that i have GooglePlayServices (in future GPS) rev 30, and that the file google-play-services.jar is nowhere to be found.
Then I got the file from this post:
https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/page-7#post-424742 extracted the entire "google-play-services" folder to my <sdk>\extras\google.
Then I copied the file "google-play-services.jar" from C:\Android\android-sdk\extras\google\google-play-services\libproject\google-play-services_lib\libs to my additional libraries folder "C:\Android\android-sdk\additional-libraries".
I put in my manifest editor:
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
...and in my project:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#AdditionalRes: C:\Android\android-sdk\extras\google\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms
#AdditionalJar: android-support-v4
#End Region
Configured paths:
Loaded AdMob 2.0 lib:
...but still on compiling get an error:
I am loosing my mind here, stuck here for two days. Read this post - still clueless. Read this
tut (all 32 pages) - again: clueless.
Any help?