Reputation:
When i select a project (File->new->Android Project-> From existing source) to import am getting the error
[2012-09-24 22:18:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read E:\android-sdk\AndroidManifest.xml: java.io.FileNotFoundException: E:\android-sdk\AndroidManifest.xml (The system cannot find the file specified)
also am getting the error After importing the project
[2012-09-24 22:21:02 - SplashScreen] Project has no default.properties file! Edit the project properties to set one.
Also am getting errors on the import statements.
import java.io, java.nio, java.util, org.apache.http.HttpResponce, org.apache.http.Version, org.apache.http.client, org.apache.http.conn,org.apache.http.impl, org.apache.http.params, android,.. etc
Please help me.
Upvotes: 0
Views: 979
Reputation: 29662
If none of the above answers work then try following manual way to add default.properties
.
Add following code
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-4
Change target=android-4
according to your android version
default.properties
however this should be the last option. One more way copy default.properfies
from any other project and paste in current project, it will also work.
Upvotes: 1
Reputation: 938
Are you missing the manifest.xml file or can you locate it yourself and copy it into the project? You can create a new one yourself. Also, it looks like you're creating a project in the android-sdk folder. Not a good idea if the android sdk really is located there.
Upvotes: 1
Reputation: 3412
Right Click on projec-->properties-->Android-->Selct any porject build target like 2.3.3 or 4.0.3 than apply , clean your project and than build the project.. i hope it may generate
Upvotes: 1