问题描述
我几天都无法编写代码。
I can't write code for days.
当我尝试编辑布局时,Eclipse通常会返回此错误。并创建新项目,新xml文件并尝试运行项目:
Eclipse usually return this errors, when I trying a edit layout. And create new project, new xml file, trying to run project:
parseSdkContent失败
无法初始化类android.graphics.Typeface
"parseSdkContent failed
Could not initialize class android.graphics.Typeface"
我删除我的用户/.Android文件夹。它有效,但是直到下一个编辑xml。尝试打开布局xml时,再次返回错误。将其更改为 ....字体错误后进行一些编辑。
Im delete my user/.Android folder. It works but until to next edit xml. When try to open layout xml, return errors again. A few edit after give it to "....typeface" error.
我尝试删除我的工作区/.metadata,我尝试全新安装ADT,而不更新为棒棒糖,x68 / x86-64 ...
I try to delete my workspace/.metadata, I try clean install ADT, not update to Lollipop, x68/x86-64...
错误还在继续,我感到绝望。
Errors are continues, I feel desperate.
解决这个问题吗?
已解决!
我通过切换新工作空间解决了。删除.metadata是不够的。
Im solved with switching new workspace. Deleting .metadata is not enough.
推荐答案
是的,使新工作区比删除 .metadata好得多。
。
但就我而言,它确实有效,但可能再次出错,需要重新启动。
Yes, making new workspace is much better then deleting .metadata
anyways.But in my case it did worked, but could run into error again, that would require restart.
Android 5.0工具(包括Android Studio)似乎是仍然是越野车,
以便获取较旧的版本,例如来自
进入新的Eclipse实例并使用新的工作区
Android 5.0 tools (including Android Studio) seems to be still buggy,so get older version e.g. 22.6.3 from https://dl.google.com/android/ADT-22.6.3.zipinto new Eclipse instance and work with new workspace
一段时间后,当新的ADT版本出现时,请尝试在第一个Eclipse实例中对其进行更新。
After some time when new ADT version comes try to update it in the 1st eclipse instance.
这是一个带有稳定工作插件的Eclipse
和其他带有更新插件的Eclipse,用于学习和实验。
That is having one Eclipse with stable plugins for work
and other Eclipse with newer plugins for learning and experimenting.
这篇关于Eclipse发疯了(自从SDK Lollipop更新以来)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!