Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing AndroidManifest.xml when importing an old Android project into Eclipse

I have an Android project developed on Eclipse (GNU/Linux) that I last touched half a year ago. I am trying to import the project into Eclipse 3.6 on Windows (with ADT installed) installed using File -> Import Project in Eclipse. When the project is imported, I see the following error twice on the console:

[2010-12-10 02:17:12 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\Program Files\Android\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Program Files\Android\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified)

Why is Eclipse looking for AndroidManifest.xml on the Android SDK path? The file actually seems to be in the project's directory. How do I fix this problem and get the project to compile?

like image 702
Gintautas Miliauskas Avatar asked Dec 10 '10 00:12

Gintautas Miliauskas


People also ask

Is your project missing an android AndroidManifest xml?

Well, do you have an AndroidManifest. xml file within your project? Try: Click on your project -> Refresh (F5) -> Go to "Project" in the menu bar -> Clean (and clean the project). If all else fails, restart eclipse.

Where is the AndroidManifest xml file?

Every project in Android includes a Manifest XML file, which is AndroidManifest. xml, located in the root directory of its project hierarchy.

What is AndroidManifest xml in android?

Every app project must have an AndroidManifest. xml file (with precisely that name) at the root of the project source set. The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.

Why do you need AndroidManifest xml file?

The Android manifest file helps to declare the permissions that an app must have to access data from other apps. The Android manifest file also specifies the app's package name that helps the Android SDK while building the app.


1 Answers

A simple solution is to either reimport the AndroidManifest.xml file or make a change to the file and save it. This worked for me.

like image 169
izak Avatar answered Sep 25 '22 08:09

izak