Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lateinit property appOpenAdManager has not been assigned #689

Open
SaimaUsman0333 opened this issue May 30, 2024 · 6 comments
Open

Lateinit property appOpenAdManager has not been assigned #689

SaimaUsman0333 opened this issue May 30, 2024 · 6 comments

Comments

@SaimaUsman0333
Copy link

I just downloaded the project from Git and running the project right away gives the following crash:

FATAL EXCEPTION: main Process: com.google.android.gms.example.appopenexample, PID: 26256 kotlin.UninitializedPropertyAccessException: lateinit property appOpenAdManager has not been initialized at com.google.android.gms.example.appopenexample.MyApplication.loadAd(MyApplication.kt:93) at com.google.android.gms.example.appopenexample.SplashActivity.initializeMobileAdsSdk(SplashActivity.kt:104) at com.google.android.gms.example.appopenexample.SplashActivity.onCreate$lambda-0(SplashActivity.kt:46) at com.google.android.gms.example.appopenexample.SplashActivity.$r8$lambda$wNXKAfm7T91NN5R0TRz1B-2iKco(Unknown Source:0) at com.google.android.gms.example.appopenexample.SplashActivity$$ExternalSyntheticLambda0.consentGatheringComplete(D8$$SyntheticClass:0) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager.gatherConsent$lambda-1$lambda-0(GoogleMobileAdsConsentManager.kt:63) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager.$r8$lambda$kxDmfZRKy0TR2lF2ZXQVrVWKty0(Unknown Source:0) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager$$ExternalSyntheticLambda2.onConsentFormDismissed(D8$$SyntheticClass:0) at com.google.android.ump.UserMessagingPlatform.loadAndShowConsentFormIfRequired(com.google.android.ump:user-messaging-platform@@2.2.0:2) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager.gatherConsent$lambda-1(GoogleMobileAdsConsentManager.kt:61) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager.$r8$lambda$mM8Tm_wQ0p01b3w1rmxTfZSOyxU(Unknown Source:0) at com.google.android.gms.example.appopenexample.GoogleMobileAdsConsentManager$$ExternalSyntheticLambda0.onConsentInfoUpdateSuccess(D8$$SyntheticClass:0) at com.google.android.gms.internal.consent_sdk.zzt.run(Unknown Source:2) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8893) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

@Alpha0470
Copy link

facing the same issue

@bojanxxx
Copy link

Same issue also. I try donloaded project and code in my app but both crashing. traying to implement app open adsd for month i hope this code will fix disruptive policy from google play store

@halls
Copy link

halls commented Jun 28, 2024

Resetting to 0feec49 revision (0feec49 Nicholas Ventimiglia nventimiglia@google.com on 2024-05-14 at 4:12 p.m.) helps.

@1322688717
Copy link

同样的问题

halls added a commit to halls/googleads-mobile-android-examples that referenced this issue Jul 1, 2024
@NVentimiglia
Copy link
Member

@halls

@SaimaUsman0333

Is this still an Issue? The current code in github is similar to pull request #713

@halls
Copy link

halls commented Jul 17, 2024

@NVentimiglia looks good now. It's a pity though that #713 pull request has not been used for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants