Skip to main content



      Home
Home » Newcomers » Newcomers » Helios crashes or gets massive null-pointer errors with Android SDK XML editor
Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #548782] Thu, 22 July 2010 19:19 Go to next message
Eclipse UserFriend
There may be a better forum for this, I haven't found it. Please suggest
if you can. I've resisted using Helios until just now, but decided to
use it to start a new Android project.

This occurs principally when I attempt to modify an XML file using what
I suppose to be a special XML editor for Android development.

I suspect that I should modify some of the start-up memory settings in
eclipse.ini?


My environment:
Windows 7 Professional 64-bit, 8Gb RAM, Eclipse 3.6 32-bit, 32-bit JDK
located on the path C:\Users\russ\dev\eclipse\jre\jdk1.6.0_20.


C:\Users\russ\dev\eclipse\eclipse.ini contains:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549389 is a reply to message #548782] Mon, 26 July 2010 10:20 Go to previous messageGo to next message
Eclipse UserFriend
On 7/22/10 7:19 PM, Russell Bateman wrote:
> There may be a better forum for this, I haven't found it. Please suggest
> if you can. I've resisted using Helios until just now, but decided to
> use it to start a new Android project.

Have you verified if the Android plugins are tested/supported against
Helios? It could be that they're only supported on 3.5.



>
> This occurs principally when I attempt to modify an XML file using what
> I suppose to be a special XML editor for Android development.
>
> I suspect that I should modify some of the start-up memory settings in
> eclipse.ini?
>
>
> My environment:
> Windows 7 Professional 64-bit, 8Gb RAM, Eclipse 3.6 32-bit, 32-bit JDK
> located on the path C:\Users\russ\dev\eclipse\jre\jdk1.6.0_20.
>
>
> C:\Users\russ\dev\eclipse\eclipse.ini contains:
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
> -product
> org.eclipse.epp.package.jee.product
> --launcher.defaultAction
> openFile
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx512m
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549397 is a reply to message #549389] Mon, 26 July 2010 10:45 Go to previous messageGo to next message
Eclipse UserFriend
On 7/26/2010 8:20 AM, Eric Rizzo wrote:
> On 7/22/10 7:19 PM, Russell Bateman wrote:
>> There may be a better forum for this, I haven't found it. Please suggest
>> if you can. I've resisted using Helios until just now, but decided to
>> use it to start a new Android project.
>
> Have you verified if the Android plugins are tested/supported against
> Helios? It could be that they're only supported on 3.5.

Thanks, Eric. I'll look into that. I did not check into that precisely
because Lars Vogel's tutorial on Android uses Helios.
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549664 is a reply to message #549397] Tue, 27 July 2010 09:42 Go to previous messageGo to next message
Eclipse UserFriend
On 7/26/10 10:45 AM, Russ Bateman wrote:
> On 7/26/2010 8:20 AM, Eric Rizzo wrote:
>> On 7/22/10 7:19 PM, Russell Bateman wrote:
>>> There may be a better forum for this, I haven't found it. Please suggest
>>> if you can. I've resisted using Helios until just now, but decided to
>>> use it to start a new Android project.
>>
>> Have you verified if the Android plugins are tested/supported against
>> Helios? It could be that they're only supported on 3.5.
>
> Thanks, Eric. I'll look into that. I did not check into that precisely
> because Lars Vogel's tutorial on Android uses Helios.

OK, well Lars knows his stuff so if he did it I'd trust that it's a good
combination ;-)
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #550586 is a reply to message #548782] Fri, 30 July 2010 19:17 Go to previous messageGo to next message
Eclipse UserFriend
After a week of frustration I reached the conclusion that you cannot
install Android for use in Eclipse JEE, my usual mode. Instead, use the
plain Java Eclipse. My definitive installation became Eclipse Galileo
SR2 IDE for Java Developers. I added these lines to eclipse.ini, though
I probably did not have to be so generous:

-vmargs
-Xms256m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m

In order to distinguish this version of Eclipse from my usual JEE
development version on my task bar, I found an icon to graft onto it at
http://www.large-icons.com/stock-icons/free-large-android-ic ons.htm and
selected one that looked most like the green Android icon.
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #551867 is a reply to message #548782] Mon, 09 August 2010 16:54 Go to previous messageGo to next message
Eclipse UserFriend
I hope this helps...
To prevent the NullPointerException when editing Android XML files in Helios , change <resources> in such XML files as "strings.xml" to

<resources xmlns:android="http://schemas.android.com/apk/res/android">

Strangely, the namespace is referenced in the default "main.xml"

This fix comes from A. Ravinda..., and is buried in:
http://code.google.com/p/android/issues/detail?id=8173
----------------------
Les Lander
icon14.gif  Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #558643 is a reply to message #551867] Mon, 13 September 2010 14:51 Go to previous message
Eclipse UserFriend
Cheers for the note about "<resources xmlns:android="http://schemas.android.com/apk/res/android">"

Works a treat Smile
Previous Topic:Multiple languages
Next Topic:no New Tasks
Goto Forum:
  


Current Time: Thu Jun 26 04:43:11 EDT 2025

Powered by FUDForum. Page generated in 0.46483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top