Eclipse import Android Project No projects are found to import solution, Android import

Source: Internet
Author: User

Eclipse import Android Project No projects are found to import solution, Android import

When we directly import the project, because some git projects do not have the. project and. classpath files, it is certainly not possible to directly import existing projects.

Solutions:


1. Change the create Project from existing code option in the new Android project.

(New-> project-> Android/Android Project from Existing Code). This option is used to generate a project based on the original Code.


2. Create an Android project and copy other projects. project and. classpath to the project to be introduced.

1) in the project file, you only need to modify <name> your project name </name>.
2). You do not need to change the classpath file. The content is 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 = "..." indicates the type of the directory in the project. Kind = "src" is the source file directory, the files under this directory will be compiled by the compiler. Kind = "output" is the output directory for compiling java files. files under the src directory are compiled to this directory.

If you have any questions, please leave a message and repeat the source.


Android import project error (No projects are found to import) how to do

Create a new project with the same name, replace src, res, and AndroidManifest. xml in it

Why is No projects are found to import referenced by java?

Because there is no directory under your project. project and. as for how to guide these two files, I think you can create a project first. The project name is the same as the name of the project you want to import. The project directory contains the above two files, copy the above two files to the project directory you want to import, delete the project you created earlier, and then import the files. It's just a theoretical assumption. You can try it if there is no actual operation.

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.