Android Eclipse - Could Not Find *.Apk

Could not find ****.apk + android

I think this can happen when you rename the library project out from underneath the dependent project. Eclipse is reasonably good about about updating dependencies in most cases but this one seems fragile.

First try removing and then re-adding your library in Project > Properties > Android > Library.

If that doesn't work try cleaning your projects, exiting Eclipse, and opening the ".classpath" file in your project's root directory. If you see a line that references your library project under a previous name, just delete it, save the file, and relaunch Eclipse. Build the library project and then your dependent one. You may need to re-add the library like I mentioned above. This is what worked for me at least.

Edit note: I also found some stale references in my .project files. They didn't seem to be causing any problems but I removed them too. If you do that, be sure to search for the old name in that file as there was a whole "link" section near the bottom that also referenced it.

Android Eclipse - Could not find *.apk

Please follow these steps; this might help you out:

  1. Right-click your app project and go to Properties

  2. Select Android from left-hand side list

  3. Uncheck the "Is Library" checkbox

If your app project relies on library projects which are in your workspace, those of course need to have the "Is Library" box checked.

could not find apk in android

If you have got all required plugins installed (ADT, M2E and M2E Android), the apk should be automatically generated by IDE.

Sometimes the apk file is not generated simply because there are some android build error in your project, unfortunately, these are not compile error so they are not shown in Eclipse problems view. For example, if you attach a icon.jpg file in your res/drawable folder and change the extension to png, you get no compile error in problems view, but if you then manually delete the apk file in your project output folder, the apk file will not be generated again and in this situation Eclipse only gives very generic message "could not find *.apk file" in console view, when you trying to run it on emulator.

Now the only question is how can we tell if there are android build error. right click your project, choose Android Tools -> Fix Project Properties. in my jpg/png example, Eclipse will show "libpng error: Not a PNG file, ERROR: Failure processing PNG image C:\android-sandbox\source\yourproj\res\drawable-mdpi\icon.png" and project marked as a error in package explorer view. as soon as you replace icon.jpg with a real png file, bingo, apk automatically generated. Though I am not sure if this can detect all subtile android build error.

Could not find HelloAndroid.apk?

You can clean the project through the Project tab and build it again.

To verify that an .apk was actually created, you can check your name_of_project/bin/ folder and see if the name_of_project.apk is there.

It can be directly deleted from there as well to force re-building.

could not find monkey.apk in eclipse

This has happened to me before. I solved it by doing the following:

  1. Right click your project and click "Properties".
  2. Select Android from the list on the left.
  3. Uncheck the "Is Library" checkbox.

Alternatively, you could try the following:

  1. Right click your project.
  2. Click Android Tools -> Fix Project Properties.
  3. Clean your project (Project -> Clean...).
  4. Try to run the project again.

Also, make sure your Android SDK Build-tools are installed. You can check this and install them by going to Window -> Android SDK Manager.

Alternative solutions could be found here if you are missing the bin directory.

Could not find Library.apk!

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) Sample Image

Thanks to Lance Nanek!



Related Topics



Leave a reply



Submit