Problems installing Eclipse with Android.

by Albion » Thu, 01 Jul 2010 09:06:48 GMT

Sponsored Links
 I've been following the tutorial at this page... 

I had originally sent an e-mail to the author of the tutorial who
promptly told me that I shouldn't e-mail him about his tutorial, but
should ask this group instead.  Below is a copy of the e-mail I sent
him, I am hoping someone here can help.


I am running Windows 7 Business x64 with the latest Microsoft
updates.  Eclipse Helios Build: 20100617-1415 (IDE for Java
Developers), Android SDK r06, Android Developer Tools
0.9.7.v201005071157-36220, Java JDK 6 update 20.  All on a Quad core
E5345 with 8gig of RAM and lots and lots of hard drive space (space
isn't an issue).

1)  In Section 2.3 under "Select available packages and select the
latest version of the SDK." your tutorial tells me to select all of
the Android 2.2 packages.  What if I only want to code in Android
1.6?  Will I also need to get the 1.6 packages?  The same for 2.1?

2) In section 4.3 you tell me to open strings.xml under res/values.
When I select the resource tab for strings.xml there is nothing listed
under Resource Elements, where you say I should see "hello (String)"
and "app_name (String)".  When I try to add an element or do anything
else with the elements listed I get an error:  "An error has
occurred.  See error log for more details.
java.lang.NullPointerException."  Even when I select the strings.xml
tab next to the resource tab and try to manually change the text, for
each character I type I get the same error.  Google has turned up
nothing for that error on Eclipse with Android.  I've tried completely
removing and reinstalling Eclipse and Android SDK, making sure I
followed your tutorial for both Eclipse install and Android install
much much closer.  When I got back to the point of section 4.3 I got
the same errors.

All in all I tried reinstalling both Eclipse and Android SDK 3 times,
following your tutorial closer each time, with the same result.  Any
ideas what I may be doing wrong?

I really appreciate the tutorial and your help.  Thanks




Problems installing Eclipse with Android.

by Frank Weiss » Thu, 01 Jul 2010 09:45:12 GMT

 Hmm. I've heard that the resources editor is buggy. Work around is to
edit the XML directly. If you really need to use the resource editor,
might I suggest fixing the code yourself and submitting to the Android


Sponsored Links

Problems installing Eclipse with Android.

by Zigurd » Thu, 01 Jul 2010 11:38:23 GMT

 Does your question 1 refer to the step in installation where you use
the AVD and SDK Manager to install build target packages? If so, you
can choose to install all of them without using up too much space on a
big machine. If you install all of the build targets you will be sure
to be compatible with example code that is set up for various API

A null pointer exception reported in Eclipse that occurs in an Android
XML editor usually means the visual editor could not interpret or
create the XML correctly. The most common case I see that is
attempting to use a layout editor where a View class has been
subclassed and the subclass name is used in the layout - the layout
editor can't handle that. So I suspect you have encountered something
similar. Edit the XML "by hand" - switch to the xml view using the
tabs at the bottom of the editor pane - and make sure that there are
no errors in the XML file.


Problems installing Eclipse with Android.

by Matthew » Thu, 08 Jul 2010 02:34:29 GMT

  also get this problem.
Even just editing the xml by hand using the xml tab I get errors for
every letter I type. It does still let me save and it does compile
successfully. I'm also on Windows 7 64bit

On Jul 1, 4:38am, Zigurd <> wrote:


Problems installing Eclipse with Android.

by Indicator Veritatis » Thu, 08 Jul 2010 05:41:27 GMT

 lancing through this thread, I can see it has been a frustrating
experience for both of you. So I feel a little sheeping about asking
for more details, yet it must be done, so I have to ask: where are you
seeing these errors? More specifically, which error messages are you
referring to? The same Null Pointer Exception the OP referred to at
first, or are you referring to the little red 'x' marks the Eclipse UI
puts up whenever it THINKS you have an error?

The reason I ask is because what you so briefly describe does not
sound like the same thing the OP originally described: it sounds
rather like what I used to see all the time, that Eclipse trips over
its own two left feet trying to print error messages to the log as it
stubbornly tries to interpret the XML code I haven't finished typing

If that is what you are seeing, there are two workarounds: 1) get at
least 3G of RAM on your machine, so that Eclipse can waste cycles with
these error messages and still have some to spare or 2) turn off the
automatic build feature, so that it interprets it only when you say it
is ready to be interpreted.

Before I upgraded to 3G of RAM, I was turning the automatic build
feature on and off to get around the things that don't work right in
either state:( Sometimes, Eclipse fails to detect the need to rebuild
the file, which failure is much more rare when automatic build
is turned on.

BTW: I would definitely go ahead and load the code for all the
different version targets. If you do get to the point of doing
production code, you really do want to test it on all versions from at
least 1.6 through 2.1. You really should do 1.5 through 2.2, since 2.2
is likely to prove the latest version until 3.0 is released (no sooner
than October), and about 20%-30% of the phones out there are still

On Jul 7, 5:49am, Matthew <> wrote:


Other Threads

1. Need some knowledge on android emulator | Please Help

Hi All,

I'm interested in doing some enhancements to android emulator (implement
{*filter*} on emulator). Therefore I'm following the android source and
emulators source to get basic understanding  & the connection between
modules. But its really hard to understand it for someone who is new to
android. Therefore can anyone please direct me to some resource to
understand this. May be some proper documentation, tutorials or anything
that i can understand this.

And since i'm interested in emulator if i change the code of emulator with
in "external\qemu" , then build it using "m emulator" and run using
"emulator" , will those changes effect or apply onto the started emulator.

And if anyone know please let me know that, what is the sdk it uses when it
run as "emulator" from the build android source code. Cos if i want to
install some application to that emulator how can i do that?

Please help if anyone know...

Thanks & Regards,


2. Is the bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates?

I have already talked a lot about the touch slow down in this forum.
There is another observation I would like to add, may be this can help to
track the problem down.

One of my projects is an Argumented Reality Game.
Of course this kind of App eats energy (CPU cycles) like crazy:

In my app I process:
The camare, OpenGL graphics, Pseudo-3D-Sound mixing (8 simultaneous samples
+ ogg-music), 2 constant sensor imputs (acceleration, magnetic) and
additional input from trackball, hardware keys and the touch screen.

The largest slow down occurs with the touch-events.

But the next big slow down occurs with the accleration and magnetic events!
I gained up to 4 FPS on a N1 by switching from SENSOR_DELAY_FASTEST to

=> So I just wonder: May be the slow down is in no way specific to touch
events! Instead the whole input-queue-event handling is just horribly slow.
As everyonw has observed: Touching the screen will trigger (flood) lots of
events - This is similar as enabling input from other sensors - which can
slow down the app in a compareable way, too!
The main differences is only: Touching the screen will still trigger more
event than using a sesnor in *SENSOR_DELAY_FASTEST*. So the slow down
appears as less drastically...

After working a while with Android, I must say:
The design and architecture of the Java-API seems to be nice and well done
most of the time.
But the execution and implementation of the software stack as a whole seems
to be just slow, slow, slow, slow, .... All this doesn't matter if you have
lots of servers with many cores (ENTERPRISE!) but for an
embedded-soft-realtime-device I expect more!

IMHO the OS on an embedded device with a 1 GHZ CPU should not use more than
1% of the CPU to process around thousand events per seconds - and even this
i would consider slow.
Anyway, this time I resist to go into a deeper rant.

Kind Regards,

2010/4/18 Robert Green <>

> > > > 

3. To popup Numeric Keypad instead of Default Keypad | HTML code

4. Virus software``

5. Rekan2 Android Hebat - Terima kasih

6. Ada yang bisa bikin aplikasi chat server lokal

7. lokasi psar malam error