Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Eclipse Layout Editor Errors
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anm  
View profile  
 More options Oct 17 2008, 4:53 pm
From: Anm <Andrew.n.marsh...@gmail.com>
Date: Fri, 17 Oct 2008 13:53:48 -0700 (PDT)
Local: Fri, Oct 17 2008 4:53 pm
Subject: Eclipse Layout Editor Errors
I have been having repeated errors with the layout editor in the
Eclipse plug-in.

The first error I have seen involves loading the file:
Could not open the editor: The editor class could not be instantiated.
This usually indicates a missing no-arg constructor or that the
editor's class name was mistyped in plugin.xml.

With the following more detailed message:
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
$TerminatingClassNotFoundException: An error occurred while
automatically activating bundle com.android.ide.eclipse.editors (585).
   at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalC lass(EclipseLazyStarter.java:
125)
   ... <snipped>
Caused by: org.osgi.framework.BundleException: Exception in
com.android.ide.eclipse.editors.EditorsPlugin.start() of bundle
com.android.ide.eclipse.editors.
   at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(B undleContextImpl.java:
1028)
   at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleCont extImpl.java:
984)
   at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost. java:
346)
   at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundl e.java:
265)
   at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
400)
   at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalC lass(EclipseLazyStarter.java:
111)
   ... 57 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number
in .class file
   at java.lang.ClassLoader.defineClass1(Native Method)
       ... <snipped to Eclipse classes>
   at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor. loadAndParseRClass(Unknown
Source)
   at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor. projectOpenedWithWorkspace(Unknown
Source)
   at
com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.addProjec tListener(Unknown
Source)
   at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMonitor. setupMonitor(Unknown
Source)
   at
com.android.ide.eclipse.editors.resources.manager.ResourceManager.setup(Unk nown
Source)
   at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown
Source)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl
$2.run(BundleContextImpl.java:1009)
   at java.security.AccessController.doPrivileged(Native Method)
   at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(B undleContextImpl.java:
1003)
   ... 62 more

I'm running on a Mac Intel Core Duo (not a 64-bit Core 2 Duo, and
hence no Java 6). I would say that's the problem, except the editors
load >50% of the time. If the Eclipse plugin classes were compiled/
distributed in Java 6 class files, they should never have run.

The other problem that has been plaguing me more recently is:
"Eclipse is loading framework information and the Layout library from
the SDK folder.  relative_layout_1.xmlwill refresh automatically once
the process is finished."

But it never loads or refreshes.  At least this is a step up, as I can
open the XML source tab with out jumping through "open with..."
hoops.  But it is still really annoying.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Ducrohet  
View profile  
 More options Oct 17 2008, 6:26 pm
From: "Xavier Ducrohet" <x...@google.com>
Date: Fri, 17 Oct 2008 15:26:56 -0700
Local: Fri, Oct 17 2008 6:26 pm
Subject: Re: [android-developers] Eclipse Layout Editor Errors
Hello Andrew,

This is quite bizarre.

Couple points: The plugin is indeed compiled in Java 1.5. I use Mac OS
10.4 as my main development computer and have never seen this.

Note that the class that is being loaded, is the project R class
compiled by your own Eclipse. Can you check that Eclipse is properly
configured to compile in java 1.5?

Unfortunately this error interrupts the loading of the editors plugin
which is why you see the message:

"Eclipse is loading framework information and the Layout library from
the SDK folder.  relative_layout_1.xmlwill refresh automatically once
the process is finished."

Xav


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anm  
View profile  
 More options Oct 17 2008, 7:37 pm
From: Anm <Andrew.n.marsh...@gmail.com>
Date: Fri, 17 Oct 2008 16:37:38 -0700 (PDT)
Local: Fri, Oct 17 2008 7:37 pm
Subject: Re: Eclipse Layout Editor Errors
I am very definitely using Java 1.5, as I'm using generics and such.
Additionally, the Java 1.6 java/javac fail miserably with a "Bad CPU
type".

Apparently, I'm not the only one:
   http://www.anddev.org/viewtopic.php?p=11577#11642

Anm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
atrus123  
View profile  
 More options Oct 17 2008, 11:00 pm
From: atrus123 <atrus...@gmail.com>
Date: Fri, 17 Oct 2008 20:00:37 -0700 (PDT)
Local: Fri, Oct 17 2008 11:00 pm
Subject: Re: Eclipse Layout Editor Errors
I ended up rebuilding my workspace, and I haven't had any of the
strange editor errors since then.

On Oct 17, 7:37 pm, Anm <Andrew.n.marsh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Adair  
View profile  
 More options Oct 28 2008, 7:18 pm
From: Ken Adair <kadai...@gmail.com>
Date: Tue, 28 Oct 2008 16:18:18 -0700 (PDT)
Local: Tues, Oct 28 2008 7:18 pm
Subject: Re: Eclipse Layout Editor Errors
I'm having this issue too...

On Oct 17, 11:00 pm, atrus123 <atrus...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andres  
View profile  
 More options Nov 15 2008, 5:24 pm
From: andres <andrescab...@gmail.com>
Date: Sat, 15 Nov 2008 14:24:30 -0800 (PST)
Local: Sat, Nov 15 2008 5:24 pm
Subject: Re: Eclipse Layout Editor Errors
I had the same problem.
I fix the problem doing this:
File->Switch Workspace->other
Click on "Copy Settings" to expand
mark Workbench Layout

On Oct 28, 6:18 pm, Ken Adair <kadai...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »