ADT 0.3 does not run on 3.4M3, so don’t even try…

Creating the project is as simple as can be. An Eclipse plugin is available making Android development a snap. You’ll need to have Eclipse 3.3 (Europa) or higher installed, and you’ll need to install the Android Plugin for Eclipse. Once you have those installed, come back here.

If you were thinking about using the ADT on 3.4M3 (since it says “or higher”), don’t even try, because you can’t even get past the first step of the ‘Hello, Android!‘ tutorial since the wizard won’t even open.

At this point, you might try to click on the ‘OK’ or the ‘Details >>’ button, but this will not work. I don’t know if it’s because I’m on Fluxbox (which isn’t a real desktop environment,) or not, but if it doesn’t work for you, you should Alt+Tab off that window back to the ‘New Project’ wizard and close that dialog. Once that’s closed, you can now go back to the error dialog and close that with the ‘OK’ button.

If you look at your workspace logs, you will find something like the following…

!ENTRY org.eclipse.jface 4 2 2007-11-12 23:20:50.557
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoSuchFieldError: JavaProjectWizardFirstPage_NameGroup_label_text
at com.google.android.adt.project.NewAndroidProjectCreationPage.createProjectNameGroup(NewAndroidProjectCreationPage.java:230)
at com.google.android.adt.project.NewAndroidProjectCreationPage.createControl(NewAndroidProjectCreationPage.java:202)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)

So it seems like Google is using internal Eclipse APIs or something of that nature (as they appear to be accessing JDT’s externalized strings directly) which got removed in the 3.4 stream. This should be no surprise since the top portion of the two wizards look the same.

7 Responses to “ADT 0.3 does not run on 3.4M3, so don’t even try…”

  1. Chris Aniszczyk Says:

    And that’s why we call things internal. Google engineers will learn the in and outs of Eclipse once they start developing more on top of Eclipse.

    It’s not that hard to recreate that structure.

    Just see: org.eclipse.pde.internal.ui.wizards.plugin.NewProjectCreationPage.createProjectTypeGroup(Composite)

    :D

  2. Boris Bokowski Says:

    Did you file a bug against Android? Is this even possible yet?

  3. Benno Says:

    This code got moved due to: bug 160985 [api] make functionality of JavaProjectWizardFirstPage API
    ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=160985 )

    This should also help to fix the issue.

    Benno

  4. Remy Says:

    Boris, I haven’t yet though I just surfed around a little and I can’t seem to find it. They also have another bug that throws NPEs. ;)

  5. Remy Says:

    It doesn’t look like they’re going to be using their issue tracker but am expecting people to report problems on the forums. I hope this gets changed when the code is open sourced because tracking issues on a forum sounds very unwieldy.

  6. Tomasz Zarna Says:

    Another pretender for the main award ;)

  7. Elias Says:

    According to the recent release notes ADT v0.3.1 should now run on 3.4. Haven’t tried it yet though.

    http://code.google.com/android/RELEASENOTES.html

    Regards,
    Elias.

Leave a Reply