Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

David Iman
David Iman
1,154 Points

Activity_main.xml error

A few days ago I was working on the Crystal Ball Project and everything was going well..... until today. I tried loading up the project like normal, however, I am now receiving a large error code for my Activity_main window.

It says Cannot create extension will hundreds of error code lines. Here is a small portion of this string of errors.

org.eclipse.core.runtime.CoreException: Cannot create extension
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:296)
    at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:318)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:266)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:61)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:304)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)

If you need any more information please ask. Help so I can continue.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

This may be a problem with Eclipse itself where you need to update Eclipse and the Android tools. Check the 2:54 mark of this video for a walkthrough of how to update everything. If you get it all up to date and still have this problem, please paste more error messages in here and we'll go from there.

David Iman
David Iman
1,154 Points

Thank you Ben for the reply... However, I have stopped that project and started fresh and so far I am doing just fine. I believe the project had become corrupted some how. I still have the project and will tamper with it some more just to see if I can figure it out.