解决windows下eclipse中android项目关联android library project失败问题
2013-07-24 17:48
519 查看
在windows系统下,library project必须和project处于相同的盘符中,因为如果在不同盘符,project.properties中的android.library.reference.1值变成绝对路径,而ADT推荐是在ubuntu下使用的,对windows绝对路径有支持bug。
——————华丽的分割线——————————-
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 A, 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.
转自:http://cysnake.com/android-library-project-eclipse-bug/
——————华丽的分割线——————————-
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 A, 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.
转自:http://cysnake.com/android-library-project-eclipse-bug/
相关文章推荐
- 转:解决windows下eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联android library project失败问题
- [转] 解决windows下eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联android library project失败问题
- 转:解决windows下eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联 library 失败问题
- 解决eclipse中android项目关联android library project失败问题
- 解决windows下eclipse中android项目关联android library project
- android项目关联android library project失败问题
- Eclipse does not recognize added Android library projects 添加库项目失败的解决办法
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决
- Android多项目依赖在Eclipse中无法关联源代码的问题解决 Ctril 点不进去的解决方法
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决
- Android多项目依赖在Eclipse中无法关联源代码的问题解决 Ctril 点不进去的解决方法
- ubuntu eclipse 解决android新建项目出现appcompat_v7报错和R文件无法生成的问题(windows同)
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决
- 关于Android多项目依赖在Eclipse中无法关联源代码的问题解决