gpt4 book ai didi

java - IntelliJ - android - splinter 的冲突路径

转载 作者:太空宇宙 更新时间:2023-11-04 10:10:20 27 4
gpt4 key购买 nike

我曾经使用 Android Studio 在 Android 中编写程序,但我尝试过 IntelliJ,我安装了 JDK,从 IntelliJ 下载它们,但遇到了一些问题。

完成构建后,一切似乎都是正确的,但是当我通过 View 创建按钮时,我遇到了这些问题:

    The following classes could not be instantiated:
- android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.
If this is an unexpected error you can also try to build the project, then manually refresh the layout.
Exception Details java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener

尝试再次安装 JDK 但没有成功。

我还遇到了 25 个这样的错误

    Library Gradle: android.arch.lifecycle:livedata-core-1.1.1 has broken classes path:   C:\Users\sjaim\.gradle\caches\transforms-1\files-1.1\livedata-core-1.1.1.aar\02222d4cd374ded1595eb215970c91b5\res [Fix]
Library Gradle: android.arch.lifecycle:runtime-1.1.1 has broken classes path:   C:\Users\sjaim\.gradle\caches\transforms-1\files-1.1\runtime-1.1.1.aar\c33133894f42717aa7fb0ac25e7803e6\res [Fix]
Library Gradle: android.arch.lifecycle:viewmodel-1.1.1 has broken classes path:   C:\Users\sjaim\.gradle\caches\transforms-1\files-1.1\viewmodel-1.1.1.aar\70595dda2942f8e25ef1d377dc2805c6\res [Fix]

最佳答案

看起来像是 gradle 缓存问题。您可以按照说明安全地删除目录 .gradle/caches here ,然后重新启动构建。

关于java - IntelliJ - android - splinter 的冲突路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52442240/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com