Android Question Error in AdsHelper example if use only OpenAd

asales

Expert
Licensed User
Longtime User
If I remove the banner and interstitial from this example, I get this error:
B4X:
** Activity (main) Create, isFirst = true **
*** : B4XPage_Foreground
*** mainpage: B4XPage_Created
b4xmainpage$ResumableSub_CheckConsentAndAddAdsresume (java line: 91)
java.lang.SecurityException: ConnectivityService: Neither user 10416 nor current process has android.permission.ACCESS_NETWORK_STATE.
    at android.os.Parcel.createException(Parcel.java:2074)
    at android.os.Parcel.readException(Parcel.java:2042)
    at android.os.Parcel.readException(Parcel.java:1990)
    at android.net.IConnectivityManager$Stub$Proxy.requestNetwork(IConnectivityManager.java:3494)
    at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3580)
    at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:3992)
    at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:3969)
    at com.google.android.gms.ads.nonagon.a.a(:com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:17)
What could be the problem?
How can I fix it?

Thanks in advance for any tip.
 
Top