GoogleMobileAds(FirebaseAdmob 2021)

Status
Not open for further replies.

ArminKh1993

Active Member
Thank you, but i think itsn't the solution. Im re-installing the SDK and i will test the sample again.

Rubén
This is not a definitive solution, it is a temporary solution.
But what I am sure of is that the problem is the SDK, not the library.
You can use my SDK until I know exactly which part of the SDK is the problem.
 

SMOOTSARA

Active Member
Licensed User
Longtime User
HI @ArminKh1993

This error is displayed when compiling

B4X:
B4A Version: 10.70
Parsing code.    (0.01s)
    Java Version: 11
Building folders structure.    (0.05s)
Compiling code.    (0.08s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (1.80s)
Linking resources    (0.54s)
Compiling debugger engine code.    (1.69s)
Compiling generated Java code.    Error
B4A line: 44
container.AddView(NativeAd.AdView.
src\test\google\b4a\actnative.java:498: error: cannot access NativeAdView
_container.AddView((android.view.View)(mostCurrent._nativead.getAdView().build()),(int) (0),(int) (0),_container.getWidth(),_container.getHeight());
                                                                              ^
  class file for com.google.android.gms.ads.nativead.NativeAdView not found
 
Last edited:

ArminKh1993

Active Member
HI @ArminKh1993

This error is displayed when compiling

B4X:
B4A Version: 10.70
Parsing code.    (0.01s)
    Java Version: 11
Building folders structure.    (0.05s)
Compiling code.    (0.08s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (1.80s)
Linking resources    (0.54s)
Compiling debugger engine code.    (1.69s)
Compiling generated Java code.    Error
B4A line: 44
container.AddView(NativeAd.AdView.
src\test\google\b4a\actnative.java:498: error: cannot access NativeAdView
_container.AddView((android.view.View)(mostCurrent._nativead.getAdView().build()),(int) (0),(int) (0),_container.getWidth(),_container.getHeight());
                                                                              ^
  class file for com.google.android.gms.ads.nativead.NativeAdView not found
View attachment 114668
Unfortunately, for some reason I am no longer active in this forum
You can use the @Erel 's library
The error I see is because it seems your SDK is not up to date or your are not add addtionalJar ... to your main activity
Good luck
 

Hani86

New Member
please help...when add ExoPlyer Library with GoogleAdmob ..App dont work ...
 

Attachments

  • Capture.PNG
    Capture.PNG
    12.1 KB · Views: 127

nima_fun_code

New Member
Hi there;)
Ok,I think the time has come to release my library over the new version of Google Mobile Ads SDK.

This library is fully compatible with the new version(20.0.0) of GoogleMobileAds SDK.
Have a look at it. (https://developers.google.com/admob/android/migration)
All changes in the link above have been applied in this version of my library.
Hello @ArminKh1993
Recently, AdMob has determined the consent management platform law.
Is this applicable in your library?
Thankful
 
Status
Not open for further replies.
Top