开发者

android intellij add directory with class files

开发者 https://www.devze.com 2023-03-28 04:47 出处:网络
I am trying to include a library into my android project using IntelliJ IDEA v10.0.3. The .jar library is, however, corrupt, so I want to include the bin directory into the project.

I am trying to include a library into my android project using IntelliJ IDEA v10.0.3. The .jar library is, however, corrupt, so I want to include the bin directory into the project.

What I am doing: I go to File - Project Structure - Modules - Dependencies - Add - Library - New Library. In the dialog that appears, I give the library a name, then click Attach Classes..., then choose the bin directory. I then click ok.

The library appears to be working fine. I get code completion and use the classes as desired. However, when I run the project, I 开发者_如何转开发get the following error:

Error! C:[Path-to-library-project]\bin is a directory. Directory libraries are not supported

What can I do to fix this problem?


Make a valid jar from the required classes and use standard jar library. It's Android specific limitation.

0

精彩评论

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