Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old October 20th, 2011, 01:39 PM   #1 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default No Graphical Layout on eclipse ADT

So I just installed the Android SDK and the ADT addon for eclipse and ran into a problem.

When I go to the graphical layout in main.xml no layout shows up. Instead I just get this error

$java.lang.NullPointerException
at sun.awt.FontConfiguration.getInitELC(Unknown Source)
at sun.awt.FontConfiguration.initFontConfig(Unknown Source)
at sun.awt.FontConfiguration.<init>(Unknown Source)
at sun.awt.windows.WFontConfiguration.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.createFontConfigu ration(Unknown Source)
at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(Unknown Source)
at sun.font.FontDesignMetrics.getDefaultFrc(Unknown Source)
at sun.font.FontDesignMetrics.getMetrics(Unknown Source)
at sun.awt.SunToolkit.getFontMetrics(Unknown Source)
at sun.awt.windows.WToolkit.getFontMetrics(Unknown Source)
at android.graphics.Paint_Delegate.updateFontObject(P aint_Delegate.java:1062)
at android.graphics.Paint_Delegate.reset(Paint_Delega te.java:1039)
at android.graphics.Paint_Delegate.<init>(Paint_Deleg ate.java:991)
at android.graphics.Paint_Delegate.native_init(Paint_ Delegate.java:614)
at android.graphics.Paint.native_init(Paint.java)
at android.graphics.Paint.<init>(Paint.java:194)
at android.graphics.Paint.<init>(Paint.java:184)
at android.view.ViewGroup.<init>(ViewGroup.java:278)
at android.widget.LinearLayout.<init>(LinearLayout.ja va:116)
at com.android.layoutlib.bridge.impl.RenderSessionImp l.inflate(RenderSessionImpl.java:227)
at com.android.layoutlib.bridge.Bridge.createSession( Bridge.java:318)
at com.android.ide.common.rendering.LayoutLibrary.cre ateSession(LayoutLibrary.java:325)
at com.android.ide.eclipse.adt.internal.editors.layou t.gle2.RenderService.createRenderSession(RenderSer vice.java:372)
at com.android.ide.eclipse.adt.internal.editors.layou t.gle2.GraphicalEditorPart.renderWithBridge(Graphi calEditorPart.java:1317)
at com.android.ide.eclipse.adt.internal.editors.layou t.gle2.GraphicalEditorPart.recomputeLayout(Graphic alEditorPart.java:1071)
at com.android.ide.eclipse.adt.internal.editors.layou t.gle2.GraphicalEditorPart$ConfigListener.onConfig urationChange(GraphicalEditorPart.java:493)
at com.android.ide.eclipse.adt.internal.editors.layou t.configuration.ConfigurationComposite.onRendering TargetChange(ConfigurationComposite.java:2192)
at com.android.ide.eclipse.adt.internal.editors.layou t.configuration.ConfigurationComposite.access$4(Co nfigurationComposite.java:2157)
at com.android.ide.eclipse.adt.internal.editors.layou t.configuration.ConfigurationComposite$2.widgetSel ected(ConfigurationComposite.java:441)
at org.eclipse.swt.widgets.TypedListener.handleEvent( TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench. java:671)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:14 08)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 384)

It doesnt matter what android version I am in I still get this error. I have tried uninstalling the SDK and the addon and to no avail. I am using SDK r14 tools and the ADT 14.0.

Anyone got any suggestions?

Puresilence is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
adt, android, eclipse, sdk


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:09 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo