An error occurred while associating the android project with the android Library Project in eclipse in windows.

Source: Internet
Author: User

Address: http://cysnake.com/android-library-project-eclipse-bug/

Recently, we are working on a small third-party project for everyone. We plan to directly use Renren's SDK for development. Because the Renren SDK is released in the form of Android library project (for details about this project, refer to Android Library
Project ).

The entire import process strictly follows the guide content, but cannot be imported. After the import is set, no related library project appears in the project. After the library is set, the Association error is always displayed after you repeat it, that is, the reference is a Red Cross. There is no error message in eclipse. In stackoverflow, I also found the corresponding problem and found the solution (the solution on stackoverflow ). Although the problem is effectively solved, the explanation is not perfect.

Adhering to the vigorous research spirit of the bloggers, I found that as long as the project is in progress. properties references android. library. reference.1 = if the value here is relative path, there is no reference problem, because it is no problem if the same project blogger uses Git to synchronize to the association under Ubuntu. So it is very likely that this is a bug of ADT, namely:

In Windows, the library project and the project must be in the same drive letter. android. library. the reference.1 value is changed to an absolute path, and ADT is recommended for use in Ubuntu. It supports bugs in Windows absolute paths. In Windows, the library project and the project must be in the same drive letter. android. library. the reference.1 value is changed to an absolute path, and ADT is recommended for use in Ubuntu. It supports bugs in Windows absolute paths.

------ Gorgeous split line -----------

environment: Windows XP SP3, eclipse 1.7 indigo release, ADT 16.0.1.v201112150204-238534 (in fact I used adt15 before, since I got this problem I updated the ADT but still didn't work ).

Description: On Windows system, I had an android Library Project, which store in disk D:, I also had a Project B which store in disk E:, I want to use project A as the Library Project in Project B, but no matter what I did, the reference was error. properties-> Android->
library showed a Big Red Cross. (followed the Guide ). A guy at stack over flow has the same problem and gave the solution),
but didn't say why, so I made a little test and I thought I figure this out.

guess: In Project B, the 'project. properties 'file use this line: 'android. library. reference.1 = 'to Point Library Project. here is what happen, in Linux system, there is no path problem, the path string of 'android. library. reference.1 'in' project. properties'
file will always be relative path. but in Windows system, if the android library project and Android project is in different disk, the path string will be absolute path. I think there are some problems in ADT to solve the absolute path on Windows system.

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.