【发布时间】:2018-09-21 10:57:03
【问题描述】:
我曾经在 Android 中使用 Android Studio 进行程序,但我尝试过 IntelliJ,我安装了从 IntelliJ 下载它们的 JDK,但遇到了几个问题。
完成构建后,一切似乎都正确,但是当我通过视图创建按钮时,我遇到了这些问题:
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]
【问题讨论】:
标签: java android intellij-idea