简体   繁体   中英

Could not find xx.apk

I am a very beginer, trying to create my first Android application. To do so, I use Eclipse and an AVD. I created my very first Class (called "Test") and when I run the project it says "Could not find Test.apk!"

I had a look at many solutions an internet: - delete and import - clean up my project (I have only one class so there is not much to clean

And it still does not work.

Do you have any idea about how to proceed to fix this up?

Many thank for you help.

You don't give much information to know what's wrong. What steps did you take to create this application?

Does your class Test extend the class Activity?

If it does, is it declared in your project's AndroidManifest.xml file?

Also, make sure that your project is not set up as a library project. Right click on your project's name, select Properties->Android and make sure that IsLibrary is not checked.

Possible solutions:-

  • Sometimes the apk file is not generated simply because there are some android build error in your project, In this case, right click your project, choose Android Tools -> Fix Project Properties .
  • Is your project termed as library, in this case, Go to Project->Properties--> Select Android from left-hand side list --> Uncheck the "Is Library" checkbox
  • Delete R.java file then clean build project or restart eclipse, this will force the workspace to be rebuild.
  • what version of eclipse are you using, version of Eclipse using(Ganymede – 3.4) is not compatible with the latest version of the SDK. Try updating Eclipse..

Hope this helps..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM