Window couldn't find content container view

14 views
Skip to first unread message

Maha Saeed

unread,
May 27, 2024, 3:24:57 AMMay 27
to Google Mobile Ads SDK Developers
After upgrading play-services-ads to 23.0.0 or 23.1.0 my app start posting crashes.
on downgrading to 22.6.0 issue solved.

NullPointerException: Attempt to read from field 'android.graphics.Rect androidx.appcompat.widget.ContentFrameLayout.c0' on a null object reference in method 'void i.A.w()'
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       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(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)


RuntimeException: Window couldn't find content container view
       at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2713)
       at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2772)
       at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2154)
       at androidx.appcompat.app.AppCompatActivity.initViewTreeOwners(AppCompatActivity.java:221)
       at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:202)

Android Studio Jellyfish | 2023.3.1 Patch 1

implementation("androidx.core:core-ktx:1.13.1")
    implementation("androidx.appcompat:appcompat:1.6.1")
    implementation("androidx.appcompat:appcompat-resources:1.6.1")
    implementation("com.google.android.material:material:1.12.0")
    implementation("androidx.constraintlayout:constraintlayout:2.1.4")
    implementation("androidx.activity:activity-ktx:1.9.0")
    implementation("androidx.fragment:fragment-ktx:1.7.1")
    //coroutines
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
    implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.0")
    implementation("androidx.lifecycle:lifecycle-process:2.8.0")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.0")
    implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
    implementation("androidx.navigation:navigation-ui-ktx:2.7.7")

Mobile Ads SDK Forum Advisor

unread,
May 27, 2024, 7:49:18 AMMay 27
to masa...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for contacting the Mobile Ads SDK Support team.

I see that you have already raised this concern on another thread with the subject ‘Form submitted at 2024-05-26 23:04 PDT’ and we have already responded to this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ67h:ref" (ADR-00236625)

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages