Error Launching B4A with admob lib files

metrick

Active Member
Licensed User
Longtime User
Got followings messages when launching B4A;
"An Error occurred."
"Missing jar file for library: C:\Program Files\AnywhereSoftware\Basic4android\libraries\admob-sk-android.xml"

when click on OK, following message popup;
"An Error occurred."
"Missing jar file for library: C:\Program Files\AnywhereSoftware\Basic4android\libraries\admob-sk-android.xml"

I have download admob.zip file and replace the files in the libraries folder with the new admob.zip files but did not removed the error message.

I have removed the 3 admob file and able to launch b4a with no problem.

Is there something wrong with admob files? Is any body got the same problems.

Thanks for all you help.:sign0085:
 

bazp

Member
Licensed User
Longtime User
Error with ADMOB

I am getting the following error in my program when compiled

Compiling code. 0.05
Using existing readonly AndroidManifest.xml

Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 72
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip) 'previously the height was 48dip. Now it is 50di p.
javac 1.6.0_23
src\alpha\android\mover\main.java:255: cannot access com.google.ads.AdView
class file for com.google.ads.AdView not found
mostCurrent._activity.AddView((android.view.View)(mostCurrent._adview1.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(0)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(0)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(320)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(50)));
^
1 error


I could not find the GoogleAdMobAdsSdkAndroid.jar listed in step 5 of the tutorial?
 
Upvote 0

bazp

Member
Licensed User
Longtime User
Missing file

the only 2 files in the GoogleAdMobAdsSdkAndroid-4.1.0 folder are


GoogleAdMobAdsSdk-4.1.0.jar

GoogleAdMobAdsSdk.jar
 
Upvote 0

bazp

Member
Licensed User
Longtime User
I appreciate your speed of reply. I did that and I am still getting the error below.

src\alpha\android\mover\main.java:255: cannot access com.google.ads.AdView

class file for com.google.ads.AdView not found

Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…