android.bat -> NullPointerException for making AVD file !

by notox » Wed, 29 Apr 2009 15:04:53 GMT


Sponsored Links
 Hello,

I used to be able to properly make AVD files using android.bat file

Now, I don't really know what I've changed, but I always get this :

D:\android-sdk-windows-1.5_r1\tools>android.bat create avd -t 3 -n
myAVD
Exception in thread "main" java.lang.NullPointerException
        at java.util.Collections$UnmodifiableMap.<init>(Unknown
Source)
        at java.util.Collections.unmodifiableMap(Unknown Source)
        at com.android.sdklib.avd.AvdManager$AvdInfo.<init>
(AvdManager.java:196)

Any ideas ?

Thanks a lot for your help !

PS : I've done some reboots + I reinstalled many times the SDK -> same
results...

--~--~---------~--~----~------------~-------~--~----~



android.bat -> NullPointerException for making AVD file !

by mattandroid...@googlemail.com » Thu, 30 Apr 2009 02:07:36 GMT


 Hello,

I have just upgraded the sdk to the 1.5_r1 version and I got exactly
the same problem.

I haven't created ADVs before, so I'm not sure if the Problem relates
to the upgrade.

Any suggestions?

Thanks a lot for your help!




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


android.bat -> NullPointerException for making AVD file !

by peter.kullm...@googlemail.com » Thu, 30 Apr 2009 02:07:38 GMT


 I had the same problem.
I was able to solve it by deleteing the .Android file in my Users
folder, which was there from the previous SDK installation.
Note, that deleting this file will delete your previous SDK settings.

Peter

--~--~---------~--~----~------------~-------~--~----~



android.bat -> NullPointerException for making AVD file !

by mattandroid...@googlemail.com » Thu, 30 Apr 2009 02:07:39 GMT


 Hello,

I have just upgraded the SDK to the version 1.5_r1 and I got excatly
the same Problem.

I haven't created ADVs before, so I'm not sure if the problem relates
to the upgrade.

Any suggestions?

Thanks a lot for your help!!





--~--~---------~--~----~------------~-------~--~----~



android.bat -> NullPointerException for making AVD file !

by notox » Thu, 30 Apr 2009 06:36:02 GMT


 Thanks you so much Peter, you solution worked for me also !

On 29 avr, 20:52, Matt AndroidFun <mattandroid...@googlemail.com>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Cupcake version 1.5 to firmware update on phone

-The T-Mobile G1 isn't meant to be updated with arbitrary versions of
the system.

-If you have an Android Dev Phone 1 (same hardware), the proprietary
files necessary to run 1.5 on it aren't currently available anywhere.

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~

2. Android 1.5 Documentation

I see the GLSurfaceView is not in the reference docs. Is there any
official/un-official documentation for 1.5 sdk?
Thanks

--~--~---------~--~----~------------~-------~--~----~

3. How to set the width and height of an ImageView programmically?

4. MP3 download problem

5. What UI Elements in AppWidget?

6. Null pointer on setBackgroundResource

7. How to draw a rectangle on screen using layout.xml file