Showing posts with label adt. Show all posts
Showing posts with label adt. Show all posts

07 September 2011

Where's my R.java?

This afternoon, I tried importing an existing project into Eclipse. Doing a Project > Clean usually clears up the R.java not found errors, but this time it didn't work. I tried re-importing the project, copy-and-pasting it into a new workspace, restarting Eclipse, but the error is still there.

Just a quick note to self: If there is an error in the layout files, resolve that first then Clean.

I find it weird that no more specific error message is presented. Oh well.

11 July 2011

ADT 12: Not so shiny after all


For all the shininess that ADT 12 promised, it seems that it also broke one major feature of DDMS: Launching emulators.

After updating to ADT 12, I kept on seeing that error when launching an emulator instance. Restarting Eclipse doesn't help any.

Anyway, the apparent cause of this error is that ADT 12 has some problems with the SDK location having spaces. If you have already forgotten, it's in Window > Preferences > Android.

To work around this bug, it is either you move your SDK to a folder in a path without spaces; or, modify the existing path to either of the following:
  • If your SDK is in Program Files: C:/PROGRA~1/<path_to_sdk>
  • If your SDK is in Program Files(x86): C:/PROGRA~2/<path_to_sdk>
Edit (20110711 1943): A bug has already been filed for this issue. Star to be notified of updates.