My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 29796: Cannot Build Android Projects with Eclipse 3.7.2 Classic, SDK R18, and ADT 18
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by alhar...@gmail.com, Apr 30, 2012
OS: Windows 7 SP1 32-bit updated
SDK: R18 via installer package
Eclipse: 3.7.2 Classic updated
ADT Plugins: 18.0.0.v201203301601-306762

Steps to reproduce:

1) Clone an existing git repo for a pre-existing Android app to my local workstation (git clone git://gitorious.org/acal/acal.git C:\Personal\Build\acal).
2) Install the SDK R18 via the installer on the Android web page.
3) Install all API versions 1.5 to 4.0.3 (and additional packages from only the Android Repository; no device or brand specific support libs) via the SDK Manager.
4) Installed the ADT Manager in Eclipse via the specified URL in the docs (https://dl-ssl.google.com/android/eclipse/).
5) Updated Eclipse and all plugins.
6) Restarted Eclipse.
7) Selected File > New > Android Project.
8) In the New Android Project wizard, select "Create project from existing source" and navigate to location of aCal (C:\Personal\Build\acal).
9) Select Next and select desired build target, 2.3.3, and select Finish.

Actual result:
Eclipse will always throw "Error: Case Variant Exists"

Desired result:
Properly build and load Android project from pre-existing source cloned via Git.


Apr 30, 2012
#1 alhar...@gmail.com
This has been reported on different platforms, such as Mac OS X, in an incorrectly filed downstream ticket in the Eclipse bugtracker, leading me to report here.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=338993
Apr 30, 2012
#2 alhar...@gmail.com
Sorry for the repeated updates; this is my first Google Code and Eclipse bug report & debug experience.  Below is the output of running into the same issue with -consoleLog and -debug parameters set for Eclipse.

Install location:
    file:/c:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/
Configuration file:
    file:/c:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/configuration/config.i
ni loaded
Configuration location:
    file:/c:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/configuration/
Framework located:
    file:/c:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/plugins/org.eclipse.os
gi_3.7.2.v20120110-1415.jar
Framework classpath:
    file:/c:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/plugins/org.eclipse.os
gi_3.7.2.v20120110-1415.jar
Splash location:
    c:\Users\ajs67\QA\eclipse-SDK-3.7-win32\eclipse\plugins\org.eclipse.platform
_3.7.2.v201202080800\splash.bmp
Debug options:
    file:/C:/Users/ajs67/QA/eclipse-SDK-3.7-win32/eclipse/.options not found
Time to load bundles: 4
Starting application: 671
Application Started: 4718
!SESSION 2012-04-30 16:26:23.747 -----------------------------------------------

eclipse.buildId=M20120208-0800
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86 -consoleLog -debug

!ENTRY com.android.ide.eclipse.adt 4 0 2012-04-30 16:26:59.874
!MESSAGE New Project Wizard failed
!STACK 0
java.lang.reflect.InvocationTargetException
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createProjectAsync(NewProjectCreator.java:530)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.access$0(NewProjectCreator.java:467)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator$1.execute(NewProjectCreator.java:278)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModify
Operation.java:106)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:118)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:121)
Caused by: org.eclipse.core.internal.resources.ResourceException: A resource exi
sts on disk with a different case: 'C:\Personal\Build\acal'.
        at org.eclipse.core.internal.resources.Project.assertCreateRequirements(
Project.java:65)
        at org.eclipse.core.internal.resources.Project.create(Project.java:287)
        at org.eclipse.core.internal.resources.Project.create(Project.java:269)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createEclipseProject(NewProjectCreator.java:564)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createProjectAsync(NewProjectCreator.java:476)
        ... 6 more
Root exception:
org.eclipse.core.internal.resources.ResourceException: A resource exists on disk
 with a different case: 'C:\Personal\Build\acal'.
        at org.eclipse.core.internal.resources.Project.assertCreateRequirements(
Project.java:65)
        at org.eclipse.core.internal.resources.Project.create(Project.java:287)
        at org.eclipse.core.internal.resources.Project.create(Project.java:269)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createEclipseProject(NewProjectCreator.java:564)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createProjectAsync(NewProjectCreator.java:476)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.access$0(NewProjectCreator.java:467)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator$1.execute(NewProjectCreator.java:278)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModify
Operation.java:106)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:118)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:121)
java.lang.reflect.InvocationTargetException
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createProjectAsync(NewProjectCreator.java:530)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.access$0(NewProjectCreator.java:467)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator$1.execute(NewProjectCreator.java:278)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModify
Operation.java:106)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344
)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp
eration.java:118)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Modal
Context.java:121)
Caused by: org.eclipse.core.internal.resources.ResourceException: A resource exi
sts on disk with a different case: 'C:\Personal\Build\acal'.
        at org.eclipse.core.internal.resources.Project.assertCreateRequirements(
Project.java:65)
        at org.eclipse.core.internal.resources.Project.create(Project.java:287)
        at org.eclipse.core.internal.resources.Project.create(Project.java:269)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createEclipseProject(NewProjectCreator.java:564)
        at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCre
ator.createProjectAsync(NewProjectCreator.java:476)
        ... 6 more

It turns out that when I select to create from an existing source, it auto-fills a number of fields, so despite the originating project being named aCal, and in the path "C:\Personal\Build\acal" Eclipse/ADT prefills it with the path aCal.  For some reason, either the plugin or Eclipse is not case-insensitive.  This throwns an error in the discrepancy between aCal and acal, even though it really should not on a Windows box.  I was able to resolve the issue by manual changing the path name from "C:\Personal\Build\aCal" to "C:\Personal\Build\acal" and the error was no longer thrown.  Still, a very weird bug/result if this is desired functionality.  
Apr 30, 2012
#3 alhar...@gmail.com
Excuse me, last post.  I was a little sloppy.  I did not manually change *the path*; I manually changed *the project name* from aCal to acal.  This was automatically filled by the wizard.  Manually changing it so it matches the project directory in the path "..\acal\" and it does not throw the error anymore.
Sign in to add a comment

Powered by Google Project Hosting