Could not find ****.apk + android

前端 未结 11 1739
别跟我提以往
别跟我提以往 2020-12-11 17:09

Whenever i am trying to run my project, i am getting this error in the console. \"Could not find **.apk\"

Operating system: windows XP

IDE: Eclipse

相关标签:
11条回答
  • 2020-12-11 17:39

    I experienced that problem, too, when I created an android project that was using an android library. Obviously I didn't know how to incorporate a library into an application the right way. I wrongly used project dependencies (Java Build Path/projects) or adding a library (Java Build Path/Libraries). While all I had to do was go to the Android tab and import my android library by means of the add button from the Library section.

    0 讨论(0)
  • 2020-12-11 17:40

    Make sure put correct SDK Location (I have 2 instances of SDK and update wrong once).

    0 讨论(0)
  • 2020-12-11 17:44

    Make sure after updating your android sdk sdk build tools are updated properly. You can check it by Open sdk manager -"Android Sdk Build Tools" status must be installed. if the status is not installed then install Android Sdk Build Tools for the same.

    0 讨论(0)
  • 2020-12-11 17:44

    Run eclipse as administrator and then import your project

    0 讨论(0)
  • 2020-12-11 17:52

    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.

    0 讨论(0)
  • 2020-12-11 17:54

    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:

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

    source

    0 讨论(0)
提交回复
热议问题