UnifiedNativeAdView, was not found in the project or the libraries

6.3k Views Asked by At

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

4

There are 4 best solutions below

1
Nana Ghartey On

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

2
Nitin Jain On

Have you recently upgraded to admob 20.1.0?

0
Mubaraka Mubahood On

That was deprecated and got replaced with this tag NativeAdView

<com.google.android.gms.ads.nativead.NativeAdView>
1
Nanda Z On

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