Discussion Forums  >  Maps, Device Location, Tracking

Replies: 2    Views: 177

CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
06/30/13 07:19 PM (10 years ago)

admob integration

Ove benn having trouble integrating admob inro my quiz app.first thanks for everyones effort to help.sadly o still cant get it to work.I have a question about the xmlns schema.it references lib and the folder that sdk is in is called libs.could this be the possivle reason my app crashes on the screen the admob code is added to?
 
buzzbt
Android Fan
Profile
Posts: 233
Reg: Nov 14, 2011
las vegas
6,530
like
06/30/13 07:39 PM (10 years ago)
Hi CMCOFFEE Try this may be you’re also facing the same problem because of the latest update of ADT. In ADT v22, the Android Support Library is now Android Private Libraries. The problem is that ADT v22 does not automatically include the libraries in the Android Private Libraries for compilation. And this will cause your project’s failure to build correctly. To solve this, right-click on the project in Eclipse and select Properties. Select Java Build Path and click on the Order and Export tab. Check the Android Private Libraries and click OK. Clean your project and it should now work.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
06/30/13 08:14 PM (10 years ago)
@CMCOFFEE- the older version of android used a folder named as lib in which the developers used to put all the jar files which they referred. But according to the new version you have to use a folder named libs. The bt android is mostly based on old codes and now it is in the process of upgrading which you can hope to be complete in coming few days. The reference of xmlns schema in the layout files for child layouts was similarly removed in new android version. But since bt xml files too are as per the old codes, you will get those errors to child layouts in layout file. You can clean project once you finish editing you xml file and the errors will be gone. Another option is to remove that particular xmlns line from the layout file which you will find in the child layouts. (you still need to keep the xmlns reference in the parent layout). This will solve the problem relating to the xmlns errors in your layout files. As far as setting admob banner ads in your quiz layout file, you will have to put the google code in the Relative layout (which is a child layout in which buttons are there). You need to put the google code in here below the last button and before the closing of the child relative layout.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.