Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK, I think I am getting there (note the subtle differences between the original steps and the following ones):</p> <p>Step 1: Copy sample code to a temporary location (outside of the workspace directory):</p> <pre><code> 1. Close Eclipse. 2. Copy the entire sample folder **NotePad** from C:\android-sdk-windows\samples\android-8 to C:\Users\androideve\Documents\NotePad </code></pre> <p>Step 2. Import from copy to workspace:</p> <pre><code> 1. Start Eclipse 2. File &gt; New &gt; Project &gt; Android Project [Next] &gt; Create project from existing **source**: C:\Users\androideve\Documents\NotePad &gt; Build Target: **Uncheck** Android 1.5. **Check** Android 2.2. [Finish] 3. Delete project from Package Explorer (without deleting its files from disk!) 4. File &gt; Import... &gt; General &gt; Existing Projects into Workspace [Next] &gt; Browse: C:\Users\androideve\Documents\NotePad &gt; Check "Copy projects into workspace" [Finish] 5. Delete entire folder C:\Users\androideve\Documents\NotePad from disk. </code></pre> <p>Now, the project is created as before but instead of 21 errors, I have only 1 warning:</p> <pre><code>Description Resource Path Location Type Attribute minSdkVersion (3) is lower than the project target API level (8) AndroidManifest.xml /NotesList line 1 Android ADT Problem </code></pre> <p>I also have two red messages on the Console:</p> <pre><code>[2011-02-10 12:45:50 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified) [2011-02-10 12:45:50 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified) </code></pre> <p>It's true: There is no AndroidManifest.xml in C:\android-sdk-windows, but there is one in the NoteList directory. Why is it complaining about this? Why is it looking in C:\android-sdk-windows? </p> <p>Anyway, after creating a launch configuration, the copied-verbatim sample project proceeded to run on the emulator without any problems (now I can finally proceed to learning the programming side of it).</p> <p>In summary, the source of the problem was that I was using the Android 7 sample (instead of Android 8) and that I proceeded with build target 1.5 (instead of 2.2).</p> <p>All is well now. :)</p>
    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.
    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