项目没有default.properties文件 [英] Project has no default.properties file
问题描述
当我选择一个项目(文件 - >新建 - > Android的项目 - >从现有的源)导入正在错误
When i select a project (File->new->Android Project-> From existing source) to import am getting the error
[2012年9月24日22时十八分41秒 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]无法读取E:\\ Android的SDK \\ AndroidManifest.xml中:JAVA。 io.FileNotFoundException:E:\\ Android的SDK \\ AndroidManifest.xml中(该系统找不到指定的文件)
也正在错误导入项目后
[2012年9月24日22时21分02秒 - 闪屏]项目没有default.properties文件!编辑项目属性设置一个。
另外我对import语句得到错误。
Also am getting errors on the import statements.
导入 java.io,java.nio中,java.util中,org.apache.http.Htt presponce,org.apache.http.Version,org.apache.http.client, org.apache.http.conn,org.apache.http.impl,org.apache.http.params,机器人的 ..等等
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
请帮我。
推荐答案
如果上述答案的工作,那么尝试以下手动的方式来增加 default.properties
。
If none of the above answers work then try following manual way to add default.properties
.
- 转到您的项目文件夹。
- 右键单击并创建一个新的文本文件
-
添加以下code
- Go to your project folder.
- Right click and create a new text file
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
修改目标= Android的4
根据您的Android版本
Change target=android-4
according to your android version
然而,这应该是最后的选择。另一种方式复制 default.properfies
在当前项目中的其他项目和粘贴,它也将正常工作。
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.
这篇关于项目没有default.properties文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!