简体   繁体   中英

Android Library Does not generate a jar file in eclipse?

First time I have had this problem. I have an Android Library project in eclipse. Its marked as a library. But it does not generate any jar file. I have run the exact same code on another windows machine and the jar file is generated? What could be the problem? I have cleaned the project. I look and see there are class files, but the jar file is not generated, and the biggest surprise is that there are absolutely no errors shown in eclipse.

The library I developed in eclipse on window 64 bit, setup eclipse and android jdk 1.6 on 32 bit imported the project and it won't generate the library. I see jarlist.cache in bin but no jar file. On 64 bit machine it runs fine. Whats going on here? Eclipse seem oblivious to the fact that the library was not generated. No messages at all ...

It's how it works. The name may be misleading, but Android Library project is not meant to produce jar files. It is to be included in other projects and built together with them.

Jar files are created by later versions of the Android SDK. See this question for more details, and my answer on how I fixed this:

Android: Added project as library, getting (missing) .jar file in Build Path>Libraries>Library Projects

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