简体   繁体   中英

cannot add Android library to my project

I tried to add Android library to my project , in the first time I do this I see green arrow and when I open the project properties again I see 在此处输入图片说明

what is the problem ?

将库作为一个Android项目打开,然后添加该项目。

假设您的日食工作区在E驱动器中,而导入的库项目在C驱动器中,则将该项目(导入库项目)复制到该E驱动器中,然后导入到您的工作区中。然后在您的项目中引用该库。

Just use English Character in your project and folder path names.

Good Luck :)

i was face the same problem. i think easy solution is at first create a folder on your hard disk and there you just copy your project and library project. then in eclipse add your library project and from properties make as library and then add your main project and try to same approach to add library as you mention before.then your library will add in your project

if you're trying to add a .jar library into your project you can try do that

  • Add the .jar file to libs folder on root of your project ( YourProject/libs )
  • if the .jar file has a .so file add the .so to libs/armeabi
  • refresh the project in Eclipse

The X appearing against the referenced library project also appears if the library project has a build error. This happened to me after updating ADT at some point. There was something in the newer version that must have performed extra validation, in my case it was a few strings in my French resource files that weren't defined. I updated these and the X disappeared.

I had a same problem. I have windows 8.1

It is impossible that the project and libraries physically lay on different disks

My project lay on a disk C . Libraries lay on the D disk

When I transferred everything to one disk everything earned I hope to somebody will help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM