Lee*_*fin 16 eclipse android eclipse-plugin android-intent android-layout
我正在Eclipse中开发Android应用程序.
目前,eclipse抱怨:
"Project has no project.properties file! Edit the project properties to set one."
但我的项目根文件夹下有 project.properties文件.为什么抱怨?
此问题导致几个资源R.java无法在Activity中解析.如何摆脱这个问题?
Sam*_*iya 19
Right click on project -->Android Tools-->Fix Project Properties.....
Run Code Online (Sandbox Code Playgroud)
小智 12
有时'修复项目属性...'没用.我建议您可以打开该文件并编辑+保存,然后删除'project.properties'文件.最后,您可以创建一个新的"project.properties"文件并粘贴旧的"project.properties"文件内容.
这对我有用.
该接受的答案可以有一个几年前的问题解决了,但它并没有与最近的工具,再工作.
这是Eclipse上的已知错误.
解决这个问题的唯一方法是再次创建一个project.properties文件,没有人发布它看起来如何,所以我将发布这个作为答案:
# 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 edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-19
Run Code Online (Sandbox Code Playgroud)
请注意:为您的项目设置正确的目标API.
| 归档时间: |
|
| 查看次数: |
33753 次 |
| 最近记录: |