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. Sell Coogi t-shirts, other brand t-shirts and coogi products $18

Very hot coogi t-shirts.

We also carry other Coogi products, such as Coogi hoodies, coogi
jeans, Coogi shorts, etc.

We are wholesaler for brand name shoes, clothes, accessories in china.
There is large product selection. For our products, pls check our
site: They are of top quality but very favorable

We carry many styles of urban and designer t-shirts. Such as: Ed
hardy, Christan Audigier, Smet, Affliction, Evisu, BBC(Billionaire
Boys Club), Bape(A Bathing Ape), Coogi, artful dodger, Gina Green
Global, D&G(Dolce & Gabbana), G-Star, Paul smith, Lacoste, Diesel,
Armani, A&F(Abercrombie & Fitch), RALPH LAUREN, crown holder, sinful,
blac label, etc.

If you are interested in our products or any concerns, you can:
1. Require price from us: If you are from USA, Canada or EU countries,
we have price list ready for you. But ita??s only for your reference.
If you need specific price for each item, pls show us the id number,
quantity you will order.
If you are from other countries, pls show us your selection(product
catories or id number, quantity, shipment country.)
2. Order sample to check quality first. If the quality meet your
requirement, you can order more. But if you order bulk, you will get
much more favorable price than sample price.

We are ready to provide you good service and wish to be your reliable
business partner. Pls take action now.

please kindly visite our website:


2. How to browse deeper into /data/data/package/app_<somename>/<somedir>


my app is creating a directory by using

File thisDir = getDir("mycustomname", Context.MODE_WORLD_WRITEABLE);

It is stored at

I can browse that directory with DDMS or with 'adb shell', of course,
it is empty. My App then creates some subdirectories there, and those
have subdirectories too, and so on, and creates files in several of
those. My app can read all those dirs and files, too.

Sometimes I have to take a look at this directory tree, but I cannot
browse deep into that tree, neither using DDMS (both inside Eclipse
and standalone) nor using the shell. I can see that there is a
directory called /data/data/package/app_mycustomname/mysubdirectory
and I can even 'cd' into this directory. But when I do a 'ls' there,
the directory is reported to be empty, though I'm sure there must be
something inside.

app_mycoustomname has the permissions drwxrwx-wx
app_mycoustomname/mysubdirectory has the permissions drwxrwxrwx

I have the same issue on the emulator and on the ADP1, both running a
1.1 firmware.

3. Start a service from Launcher

4. Touch Sensitivity With HTC Dream 1 Device Lacking

5. Auto launch Service

6. Changing background color on a selected listview item

7. How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?