Android: added a project as a library, receiving (missing) .jar file in the build path> Libraries> Library projects

Well, I tried to find a solution for this for about half a day.

I have two projects in the workspace. One of them is the main one, I will call it Alpha, the other is used as a library for the main one, I will call it Delta.

Delta has a marked "library" and has no errors (only yellow triangles with an exclamation mark).

Alpha added Delta as a library (in the "Select Android" section in "Project Properties"). As soon as this is done, I get a big, thick red exclamation mark from Alpha. In the Alpha Build Path, on the Libraries tab, there is a red “x” in the “Library Projects”. When expanding this option, I see:

delta.jar - /Users/.../Delta/bin (missing) 

I really don't understand why this will be absent. 1st, there is a bin folder. Secondly, I import the project library, not .jar. 3rd, even if it creates a project library .jar file, it seems that it compiled correctly, Delta does not have erros.

I'm really here in the dark. Please help.

thanks

+4
source share
2 answers

If you use SDK Tools, version 14 and ADT 14.0.0 and higher, there are changes in the way jar-based libraries are created. I recommend you check out the library project update here.

+2
source

I had this problem, especially when I switched to Android SDK 18 on OSX. Without marking the project as a library or importing an existing library project, you will create a jar file.

I upgraded to 19, and he left, now banks are being created, and I generally did nothing for the project or the settings.

Hope this helps someone, I struggled for hours like an OP.

0
source

Source: https://habr.com/ru/post/1391489/


All Articles