简体   繁体   中英

Error loading java.awt.font in Eclipse Android project?

I've seen a few places where this was asked but I haven't seen where it's been resolved.

I've just installed the tools needed to develop Android applications. This includes, of course, Eclipse. When I try to open the res/main.xml file, I get the error 'could not initialize class java.awt.font'.

I'm running the newest version of Eclipse and all the software required for Android development. I'm running on Ubuntu 10.04 32bit.

Sun JDK and JRE are installed.

Any ideas?

Just right click on the XML file in the package explorer (your navigation pane) and go to "Open With" and then "XML Editor".

From that point, if you just want to look at the code, just above where eclipse puts the "Console" tab (nearer to the bottom of the eclipse window), you should see a small tab, which says "Source". Clicking on that will get you the pure code in the XML file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM