Android Eclipse - Could not find *.apk
Experiencing the Could not find *.apk
error on Eclipse? Let's debug! Verify the correct setup of your Eclipse IDE
, including its SDK and ADT. Also, make sure your project's build path is generating the .apk
in the /bin
directory.
Perform a clean and rebuild using Project -> Clean...
to remove unwanted artifacts. Double-check the minSdkVersion
in your AndroidManifest.xml
; it should align with your AVD.
Again, if your .apk
is still playing hide and seek with you, remove /bin
and /gen
folders, and play clean and build again with your project.
Example:
Your troubleshooting checklist
Verify project settings
Confirm that your project isn't incognito as a library when it's actually an app. Navigate to Properties
by right-clicking on your project. Select Android
and be sure the "Is Library" option isn't playing peekaboo with you (it should be unchecked). Generally, libraries love the keep quiet, so make sure "Is Library" is checked for these types.
Inspect compiler Issues. Clean! Rebuild!
An erratic compiler might be what’s brewing the storm. Gaze out for compiler issues and any workspace anomalies that signal trouble. Act brave, click Project -> Clean...
, and banish the haunted build files to rebuild your .apk
. Re-import the unruly project to Eclipse, if needed.
Theme: A fresh start
When Eclipse throws tantrums, give it some downtime. Yes, restarting Eclipse can solve complex issues. You can also kick out debug.keystore into oblivion (which you can find lurking in ~/.android/
on Unix-based systems). It spurs a new one on the next build.
Double down on debugging
Update to conquer
Upgrade your Eclipse and the Android plugin (ADT) to their latest power levels. They come loaded with bug fixes and enhancements that could set things right.
Eclipse love JAVA_HOME
Check if your JAVA_HOME
environment variable romantically points to the correct path of your JDK installation.
Meet and greet your errors
Stumbled upon a 'crunch' error? Greet it by unchecking the 'Skip packaging and dexing until export or launch' in your project's build settings.
Squash dependency bugs
Scour the Java Build Path and squash any bugs partying in the incorrect project dependencies.
Routine Cleanups
Keep your project tidy and sparkling clean to maintain a healthy development environment.
Was this article helpful?