title: Importing Existing Android Project into Eclipse
body: <p>project.properties is being updated incorrectly when importing an Existing Android project into Eclipse.  This file exists in source control:</p>
  
  <pre><code># This file is automatically generated by Android Tools.
  # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
  #
  # This file must be checked in Version Control Systems.
  #
  # To customize properties used by the Ant build system use,
  # "ant.properties", and override values to adapt the script to your
  # project structure.
  
  # Project target.
  target=Google Inc.:Google APIs:14
  </code></pre>
  
  <p>After importing the project (and doing NOTHING else) the file looks like this:</p>
  
  <pre><code># This file is automatically generated by Android Tools.
  # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
  #
  # This file must be checked in Version Control Systems.
  #
  # To customize properties used by the Ant build system use,
  # "ant.properties", and override values to adapt the script to your
  # project structure.
  
  # Project target.
  target=android-8
  </code></pre>
  
  <p>The manifest has the following items:</p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="14"/&gt;
  </code></pre>
  
  <p>This means that every time someone imports the project we're having to reset the build target in the project->properties->android menu.  I have the latest ADT tools installed and all SDKs are downloaded and available.</p>
  
  <p>Things I've tried:</p>
  
  <ol>
  <li>Deleting the entire project including contents on disk, cloning and deleting the project.properties file before importing.  Same result.</li>
  <li>Deleting the entire project including contents on disk, cloning and deleting the .settings folder before importing.  Same result.</li>
  <li>Deleting the entire project including contents on disk, cloning and importing just for grins.  Same result.</li>
  <li>Scoured through the .project file.  Nothing of interest.</li>
  <li>Double checked ant.properties, build.xml and every other plain text readable file for clues.  Nothing of interest.</li>
  <li>Googled the problem and double checked the Eclipse and ADT bug sites for known issues.  Nada.</li>
  <li>Verified on the file system that the file does, in fact, have the correct setting after cloning and that the import is the culprit.</li>
  <li>Deleting the entire project including contents on disk, cloning, MANUALLY editing the project.properties file to android-14, importing.  This resulted in an unchanged project.properties file but since I'm using the Google APIs for mapping this is unacceptable.</li>
  </ol>
  
  <p>I just verified that I can "fix" the project after it's imported.  Delete the project from Eclipse but leaving the contents on disk.  Importing the project incorrectly edits project.properties again.  The import process does not recognize the Google APIs entries in project.properties.</p>
  
  <p>This is how I'm getting the project from the file system into Eclipse:</p>
  
  <h2><img src="https://i.stack.imgur.com/gx6h0.png" alt="enter image description here"></h2>
  
  <p>Thoughts?</p>