Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find Library.apk!

I managed to restructure my application pretty nicely so that, except for a few methods in a derived Activity class, everything is in a Library Project.

It works beautifully, except that Eclipse's Console (not LogCat!) issues the following error message:

[2011-06-13 19:54:08 - MyLibrary] Could not find MyLibrary.apk! 

I cleaned both projects (library and application), restarted Eclipse, re-built the projects, but this weird error message persists.

What does this error message mean? (especially in light that everything seems to be running OK)

How do I get rid of it?

UPDATE: I tried removing the project then re-importing it per the suggestion below. It didn't help. I then found this thread that helped me realize that I had <uses-library> in the application's AndroidManifest.xml referring to MyLibrary. I deleted it, cleaned the project and rebuilt. The problem persists.

I am now suspecting this is "real problem", e.g. misconfiguration of some paths or something else on my part. What could it be?

like image 353
an00b Avatar asked Jun 13 '11 23:06

an00b


People also ask

What is in a APK LIB file?

APK files are basically ZIP files similar to the JAR files used to package Java libraries. An APK file contains app code in the DEX file format, native libraries, resources, assets, etc. It must be digitally signed with a certificate to allow installation on an Android device.

Where is library located on android?

You can find your History, Watch later, Playlists, and other channel details in your Library. To find your Library, go to the bottom menu bar and select Library .

How do you download library on Android?

Just go to Maven central and download the libraries. For example, here is Volley. Just click the download JAR button. I would strongly recommend sticking with Gradle / Maven, though, to keep consistency with versions and appropriately handle additional dependencies for the libraries you want to download.


1 Answers

I found the source of the problem!

It turns out that "with the new library feature, you don't specify the Android projects you depend on in the Java Build Path section of the Properties. You do it in the Android section of the Properties".

So all I had to do is go the Application Project's Properties, hit the Projects tab, select my own library project and click the Remove button. That's it. No more problem.

In Eclipse Java EE select the project Properties, then select Project References, then check the FacebookSDK (see screen capture) enter image description here

Thanks to Lance Nanek!

like image 120
an00b Avatar answered Oct 05 '22 01:10

an00b