我无法将新活动添加到我的项目中。在“添加活动”向导结束时,如果我单击完成按钮,向导仍会打开并且只更改清单文件。
我正在使用 Android 开发者工具构建:v22.0.0-675183
来自 Eclipse 的错误 (android\.metadata\.log)
!ENTRY com.android.ide.eclipse.adt 4 0 2013-06-02 14:46:09.807
!MESSAGE
!STACK 0
java.lang.reflect.InvocationTargetException
at com.android.ide.eclipse.adt.internal.wizards.templates.TemplateWizard.performFinish(TemplateWizard.java:164)
at com.android.ide.eclipse.adt.internal.wizards.templates.TemplateWizard$1.run(TemplateWizard.java:188)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: End position lies outside document range
at org.eclipse.ltk.internal.core.refactoring.Changes.asCoreException(Changes.java:62)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:246)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at com.android.ide.eclipse.adt.internal.wizards.templates.TemplateWizard.performFinish(TemplateWizard.java:161)
... 2 more
Caused by: org.eclipse.text.edits.MalformedTreeException: End position lies outside document range
at org.eclipse.text.edits.TextEditProcessor.checkIntegrityDo(TextEditProcessor.java:178)
at org.eclipse.text.edits.TextEdit.dispatchCheckIntegrity(TextEdit.java:743)
at org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:151)
at org.eclipse.ltk.core.refactoring.TextChange.performEdits(TextChange.java:277)
at org.eclipse.ltk.core.refactoring.TextFileChange.performEdits(TextFileChange.java:262)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:238)
... 4 more
Root exception:
org.eclipse.core.runtime.CoreException: End position lies outside document range
at org.eclipse.ltk.internal.core.refactoring.Changes.asCoreException(Changes.java:62)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:246)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at com.android.ide.eclipse.adt.internal.wizards.templates.TemplateWizard.performFinish(TemplateWizard.java:161)
at com.android.ide.eclipse.adt.internal.wizards.templates.TemplateWizard$1.run(TemplateWizard.java:188)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.text.edits.MalformedTreeException: End position lies outside document range
at org.eclipse.text.edits.TextEditProcessor.checkIntegrityDo(TextEditProcessor.java:178)
at org.eclipse.text.edits.TextEdit.dispatchCheckIntegrity(TextEdit.java:743)
at org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:151)
at org.eclipse.ltk.core.refactoring.TextChange.performEdits(TextChange.java:277)
at org.eclipse.ltk.core.refactoring.TextFileChange.performEdits(TextFileChange.java:262)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:238)
... 4 more
我究竟做错了什么?