5

I added the required dependency. But the Android Studio is showing the below line. Adview is showing and no other issue. I checked everything carefully, But I see the below time every time.

com.google.android.gms.ads.formats.UnifiedNativeAdView, was not found in the project or the libraries

James Z
  • 12,209
  • 10
  • 24
  • 44

4 Answers4

9

That was deprecated and got replaced with this tag NativeAdView

<com.google.android.gms.ads.nativead.NativeAdView>
2

If you were using SDK v20

for ex:

implementation 'com.google.android.gms:play-services-ads:20.4.0' // end more

you have to notice this changes.

list changes There a lot of class has been renamed and removed. For detail here

Nanda Z
  • 1,604
  • 4
  • 15
  • 37
0

Check the version of google ads you're using. It could be the dependency you have is an older version. Is it >= 17.0.0? Check the release notes https://developers.google.com/admob/android/rel-notes?hl=es

Nana Ghartey
  • 7,901
  • 1
  • 24
  • 26
0

Have you recently upgraded to admob 20.1.0?

Nitin Jain
  • 1,314
  • 11
  • 15
  • I am using the latest version. Here is the dependency. implementation 'com.google.android.gms:play-services-ads:20.2.0'. – Basudeb Barman Jun 10 '21 at 20:09
  • 1
    This class has been replaced by NativeAdView. You can downgrade to 19.7.0 or migrate your code here is the migration link https://developers.google.com/admob/android/migration – Nitin Jain Jun 11 '21 at 21:46