ANDROID: Could not find *.apk!

SEVERAL very annoying errors popped up today as I was dev-ing for Android. This post describes & solves the first of these errors.

Description of Error:
While attempting to build the android project the following message will pop up in the Console

[2009-11-02 16:28:51 - AndroidGL]Android Launch!
[2009-11-02 16:28:51 - AndroidGL]adb is running normally.
[2009-11-02 16:28:51 - AndroidGL]Could not find ********.apk!

Solution:
Make sure your project imported the Android 1.6 library correctly. That is, under your project, you should see 'Android 1.6', which expands and displays 'android.jar'.

If it says Referenced Libraries > android.jar, you will need to fix this by manually altering the .classpath for the project.

Open .classpath for the project and type the following:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<kind="src" path="src">
<kind="src" path="gen">
<kind="con" path="com.android.ide.eclipse.adt.
ANDROID_FRAMEWORK">
<kind="output" path="bin">
</classpath>

The important line is the 3rd classpathentry, which is the actual link to the Android SDK libraries.

5 comments:

Robert said...

I appear to be having the same error
Where do I find the classpath file

JuananRey said...

Thanks a lot man!

Unknown said...

I fixed it by temporarily changed the Android build version (applied them), then change it back to the original version.
(E.g. Error with Android 1.6. changed it to 1.5. Then change it back to 1.6). It works for me. ;)

Unknown said...

I am still having this issue. with android 2.2. i tried going back all the way to 1.5. nothing seems to help. still getting test.apk not found. when i go to bin directory, i see the .apk file. so, why is eclipse on windows xp not finding it. Any help is appreciated.

Unknown said...

No more lies.
Check the api´s. 7.0 2.1, 2.2, etc.
in all camp complete the same data and up version.

it should start in few minutes.
is heavy, but is a simple check.
asdm.!