Eclipse: the correct method for importing Android projects.

Source: Internet
Author: User

Eclipse: the correct method for importing Android projects.

Direct:




Solution to package errors after importing a project in android

Select a project and right-click to open Properties:
1. Check whether project build target is selected on the android option page.
2. Check whether the corresponding android libraries is checked in orler and explain in java build path.
3. Open windows-> preferences: java-> compiler in the menu bar and change the jdk version. Generally, if you change 1.6 to 1.5, there is no error.

I used this method to solve the problem (5.0 or 6.0. Found '1. 7' instead. Please use Android Tools> Fix Project Properties). I haven't tried any other problems. Let's talk about the problem.
4. Check your Android SDK path settings: windows-> preferences: android
5. Set your Android SDK environment variable: Set ANDROID_SDK_HOME in path to your android sdk directory.
6. If the problem occurs in gen, first try to delete the package under gen, and then wait for eclipse to automatically compile


How to import existing Android projects into the Eclipse project

If the project to be imported is in the workspace directory, use import.
If it is not in the directory, you can create a new-> project and select an existing project.

How to import another Eclipse project as a library in Android

Copy the folder of another project, and set the eclipse workspace to the folder where the project is saved.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.