开发者

Not able to import the another project as a library?

I am going to licensing my Application. I know all the process for licensing application. But for that I have to load the Library Project in My Workspace. I have loaded the Library Project in my WorkSpace then i have imported it into my Original project. It works great.

But now the problem is, If i have once deleted that library project and then if i have imported into workspace from another location and if i impo开发者_StackOverflow社区rt it in to my that project then it is not going to import it.

And if i Import it from the previour one location, then its again works fine. . . So why it is happening like that?

Why i am not able to import the library project from any location?

Please guide me for this. Thanks.


I dont know why it is happend. But if you have import once from any location. and then delete it. Now if you are imported the same project from another location than it is also not going to imported. For sollution you have to Put that library project at once place for which you what it every time. And if necessary then do not delete that library project after Importing it to the Original Project. Thanks.


If you want to include a project to your current project follow the steps,

1.) Right Click(or Alt+Enter) on the project_as_library->Library-> check mark Is Library

2.) Right Click(or Alt+Enter) on the project where you want to include the Library, go to Android->Library->Add. When you click Add you will see the Project name that you declared as Library, selected that and Press Ok and you are done.


From your question, i am assuming that you want to import any library into your project and if you want to use any library(.jar) then you can do these steps:

  1. create "libs" folder inside your application's structure, at same level of "src" directory.
  2. Now copy those libraries into this libs folder.
  3. Right click on any librarary -> Build Path -> Add to Build Path.

Update: As you have commented below as its library project, i would suggest you to go through this Android doc on Setting up a Library Project

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜