Reputation: 753
The following classes could not be instantiated: - com.google.ads.AdView (Open Class, Show Error Log) See the Error Log (Window > Show View) for more details.
getting this error in graphic layout: I did all the necessary things required for setting an ad , like adding jar, wrote in manifest as well. I know I,m posting duplicate question but I cant understand it.
Upvotes: 2
Views: 702
Reputation: 245
Add this
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
under
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
at the beginning of the xml layout file
Upvotes: 1