Search code examples
androidcompiler-errorsandroid-manifestandroid-sdk-2.1target-sdk

Should the Android compile version be same as the target version in Eclipse?


I need to set the target SDK version of an Android project to API 14. But I do not have the same version available to compile the project. I know that the project can be compiled with a different version but I need to know whether it will cause any issue.

I received the error "Android manifest file is missing" even though it exists. When I cleaned and then built the project it was compiled but the application crashed. What am I doing wrong here?

These were my settings. enter image description here


Solution

  • There should be no issues introduced when compiling with a higher version, it is even encouraged to do so. You can find more on that topic in this Medium article.

    I would also like to bring your attention to the following blog, which contains some important information regarding SDK targeting in the near future.

    Unfortunately I do not use Eclipse so I fear cannot provide any verified insight on that matter. However the suggestions I have found so far include:

    • Cleaning the project
    • Getting rid of characters such as ö,ë, etc.
    • Deleting the file and recreating it

    The manifest issue was probably due to creating a project with the same name over and over again. However clean -> build the project helped me get rid of it.

    Yeah. Android compile version can be higher than the target version. Android compile version and target version do not have to be the same.