Eclipse import Android Project No projects is found to import solution

Source: Internet
Author: User

When we import the project directly, because some GIT projects do not have. Project and. classpath files, it is definitely not possible to import items directly.

Here's the solution:


1. New Android project inside change an option Create project from existing code

(New->project->android/android project from Existing code). Using this option will generate the project based on the original codes.


2. Create a new Android project and copy other projects . Project and. Classpath to the project to be introduced.

1). project file only needs to be modified <name> your project name </name> this project name can be
2). The. classpath file is usually not changed and reads as follows:
<?xml version= "1.0" encoding= "UTF-8"?>

<classpath>

<classpathentry kind= "src" path= "src"/>

<classpathentry kind= "src" path= "gen"/>

<classpathentry kind= "con" path= "Com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>

<classpathentry kind= "Output" path= "Bin"/>

</classpath>

kind= "... "refers to the type of this directory in project. Kind= "src" is the source file directory,The files in this directory will be compiled by the compiler. kind= "Output" is a Java file compilation outputdirectory, the files under the SRC directory will be compiled into this directory.

< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; line-height:25.1875px "> If you have any questions, please leave a message, reproduced the source.

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.