Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You must be referring to the error message "<strong><code>invalid project description</code></strong>".</p> <p>See <a href="http://groups.google.com/group/android-beginners/browse_thread/thread/13cb9892c027d0e7" rel="nofollow noreferrer">this thread</a> (relevant extracts below, with emphasis mine):</p> <p>If you see a .project in the application you downloaded, you can try a <code>"File" + "Import" + "Existing Projects into Workspace"</code> and select the directory of the music sample. </p> <p>But if not, using <code>New&gt; Android Project&gt; Create project from existing source</code> is the right way to do it.<br> <strong>Make sure to select which Android target you want (1.1 or 1.5 or 2.0)</strong>:<br> the "new project" wizard will automatically select the right sample directory for you.<br> Then select "Browse" and the Music directory. It should then fill the properties at the bottom of the new android project wizard. </p> <blockquote> <p>However you should not put your workspace in <code>%ANDROID_HOME%\samples</code>.<br> Leave it somewhere else (My Documents, whatever).<br> I suspect you get a conflict because Eclipse tries to create a project and there's already a directory of the same name.<br> In either case, can you look at <code>your_workspace_dir/.metadata/.log</code> for a more verbose error and post it? </p> </blockquote> <p>In short:</p> <blockquote> <ul> <li>Change the workspace other than android SDK. </li> <li>Then dont put project name first. </li> <li>Browse the project of <code>\samples\Music</code> in create project from the source. </li> <li>The other fields will fill automaticaly. </li> <li>Then execute.... </li> </ul> </blockquote> <hr> <p>See also <a href="http://www.infinitezest.com/articles/getting-started-with-the-android-sdk-and-plugins-for-eclipse.aspx" rel="nofollow noreferrer">this tutorial</a> (for the Snake sample)</p> <blockquote> <p>I wanted to open up the Snake sample provided in the SDK samples.<br> For this, choose ‘<code>Create project from existing source</code>’ in the <code>New Android Project</code> window and select the <code>Snake</code> directory from <code>Samples</code>.<br> This will set the package name, activity name, and application name for you.</p> </blockquote> <p><img src="https://i.stack.imgur.com/O2j02.jpg" alt="http://www.infinitezest.com/images/eclipse-android-snake-project.jpg"></p> <hr> <p>That being said, if after importing the project, you end up (like the OP) with tons of errors.<br> See question <a href="https://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error">R cannot be resolved - android error</a>:</p> <ul> <li>make sure the tools in the SDK directory have the permission to be executed</li> <li>go to <code>Project &gt; Build all</code> (and selecting "<code>Build Automatically</code>"</li> </ul> <blockquote> <p>R is an automatically generated class that holds the constants used to identify your resources.</p> </blockquote> <hr> <p>Other cause for massive compilation errors all over the Eclipse Android project, as reported by the OP himself (<a href="https://stackoverflow.com/users/118241/guynoir">GuyNoir</a>):</p> <blockquote> <p>The code I downloaded from git was the newest version, and probably for Android 2.1, where the SDK I'm was creating it under was Android 1.5.<br> So I'll need to download older code or install the latest SDK.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload