Reputation: 121
I have a few projects that were previously tested to be working in 1 PC.
I've since moved to another Windows XP PC, and I've setup the development tools on this XP system. I've downloaded and installed the following in order:
1. Eclipse Classic 3.6.1
2. JDK v6(jdk-6u23-windows-i586.exe)
3. Android SDK Tools rev8(installer_r08-windows.exe)
4. SDK Platform v2.3/2.2, Google APIs, Android API8, rev2, Google USB driver, rev4
5. ADT 8.0.1
I created a new empty project just to make sure things are working, and I seem to be able to get that new project to run on the emulator just fine. However, when I imported an existing project into the workspace, I get a bunch of errors, such as: "The import java.util cannot be resolved" "The import android cannot be resolved"
When I look at Project Properties->Java Build Path, it shows "Unable to get system library for the project" under "Libraries" and "Order and Export". What's wrong?
I've also tried copying and pasting the .java files and main.xml files from the imported project to the new project, and it runs correctly...but somehow the imported project doesn't.
Thanks.
Upvotes: 12
Views: 18077
Reputation: 277
Upvotes: 0
Reputation: 31
I think your project does not have project target name or missing. And it's simple go to main menu : project->properties->android
(from left panel) then mark a project target name as you need for your project. After this it should work if not then clean your project like this : project->clean..>select
(clean projects selected below )->
mark your project then click ok
. thanks
Upvotes: 3
Reputation: 4089
That should do the trick and add Android X.X (version you selected) to your project, and the imported project should start working.
Enjoy.
Upvotes: 68