Question: This is my .html body content:

```
<form name="login"> 
    <table border="0" cellpadding="2.0" cellspacing="2.0" align="left"> 
        <tr>
            <td>Username&nbsp;</td>
            <td>
                <input name="username" type="text" id="username" maxlength="15"></input>
            </td> 
        </tr> 
        <tr>
            <td>Password&nbsp;</td>
            <td>
                <input name="password" type="password" id="password" maxlength="10"></input>       
            </td> 
        </tr> 
        <tr>
            <td>&nbsp;</td> 
            <td>&nbsp;</td> 
        </tr> 
        <tr>
            <td>&nbsp;</td>
            <td>
                <strong>
                    <input name="Login" type="button" value="Submit" onclick="Vlogin()"></input>
                </strong>
            </td> 
        </tr> 
    </table> 
</form>

```

...and javascript code:

```
function Vlogin()
{
    var user=document.login.username;
    var pass=document.login.password;
    if (user.value=="account1" && pass.value=="backup1") 
    { 
        window.location= "index.jsp";
    }
    else
        alert("Invalid username or password");
        user.focus();
    }
}

```

Answer: 
I solved this by importing the project in the following manner:

`File > Import > Android > Existing Android Code Into Workspace`

Click `Next`, then `Browse...`

Select your project root directory, and check the box for `Copy projects into workspace`. Click `Finish`.

Hope it will help you.
I'm facing the same issue, here what i have done.
- In Eclipse, Go to windows -> Preferences
- choose Android, set your Android SDK Location
 make sure you have at least one of the Android platform in the table.
- Apply and Ok.

done, I try import, and it's fine.
Hope it help.