Whenever I try to create a new Android project (inside an empty workspace) with Eclipse, the ‘Build target’ list is empty. So I need to cancel the “New Android Project” dialog, then go the preferences and re-enter the SDK location for Android.
Once I’ve done that, I can go back to to File -> New -> Android Project and the ‘Build Target’ list is full again, so I pick Android 2.1 (or whatever) and carry on with the new project.
How can I make Eclipse remember the SDK location setting, so I don’t need to set it every time I want to make a new project?
For reference, I’m running Eclipse 3.6.2 with version 12 of the Android tools on Win7 x64 and I have the 32bit Android SDK installed in C:\Program Files (x86)\Android\android-sdk-windows.
Are you creating a new workspace as well?
That’s the only time I have ever seen it not remember the SDK location. In eclipse it kind of expects you to continue to add projects to the same workspace, you can close those projects so they don’t compile etc.
This is a bit wierd if you are coming from other IDE’s