【问题标题】:Large number of errors in the console in android studioandroid studio 控制台出现大量错误
【发布时间】:2022-12-11 01:27:12
【问题描述】:

救救我,我已经安装了android studio,但是我不能写代码,IDE不允许我,但是控制台写了很多错误,也许有人遇到过这个问题,请帮忙, p.s.: 我住在俄罗斯,程序只能通过 VPN 运行 enter image description here

【问题讨论】:

    标签: android


    【解决方案1】:

    从 Android Studio Chipmunk 开始,如果您在问题面板中看到 java.lang.NoSuchFieldError: view_tree_saved_state_registry_owner 或 java.lang.ClassNotFoundException: androidx.savedstate.R$id,请确保包含对 androidx.lifecycle:lifecycle 的 debugImplementation 依赖项-viewmodel-savedstate 在你的模块中。

    如果您在问题面板中看到 java.lang.NoSuchFieldError: view_tree_lifecycle_owner,请确保在您的模块中包含对 androidx.lifecycle:lifecycle-runtime 的 debugImplementation 依赖项。

    如果您在问题面板中看到 java.lang.NoClassDefFoundError: Could not initialize class androidx.customview.poolingcontainer.PoolingContainer 或 java.lang.NoClassDefFoundError: androidx/customview/poolingcontainer/PoolingContainerListener,请确保包含对 androidx 的 debugImplementation 依赖项.customview:customview-poolingcontainer 在你的模块中。

    【讨论】:

    • 我在哪里可以找到它,我该如何修复它?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多