项目没有project.properties文件!编辑项目属性以设置一个错误 [英] Project has no project.properties file! Edit the project properties to set one error

查看:3052
本文介绍了项目没有project.properties文件!编辑项目属性以设置一个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误:

 构建期间发生错误。 
在项目DashboardActivity上运行构建器Android资源管理器的错误。
java.lang.NullPointerException

  [2013-09-02 17:55:31  -  DashboardActivity]项目没有project.properties文件!编辑项目属性设置一个。 

 描述资源路径位置类型
类型java.lang.Object无法解析。它是从必需的.class文件间接引用UserFunctions.java / DashboardActivity / src / libary第1行Java问题

 描述资源路径位置类型
项目未构建,因为其构建路径不完整。找不到java.lang.Object的类文件。修复构建路径,然后尝试构建此项目DashboardActivity未知Java问题

我已经尝试清理项目,我得到相同的错误。只有DashboardActivity项目是获得此错误的项目,我的其他项目工作正常。在我的属性订单和导出部分中,有一部分说无法获取此项目的系统库
我知道应该有一个正确的android.jar文件,但我看不到一个。 >

此外,当我点击它时,android工具的修复项目属性完全不做任何事情。



我也有AndroidManifest.xml文件。



自从我第一次清理我的项目以来已经创建了文件proguard-project.txt。



我可以如何解决这个问题?感谢提前!



注意:现在我无法访问gen文件夹或bin文件夹(没有一点点+点击打开它)现在这是说R无法解决变量)?





应用

时出错

解决方案

你这样做



右键单击项目根文件夹>属性> Java BuildPath>库选项卡





检查是否有任何图书馆缺失(显示红十字错误)
如果是,则将此库添加到您的项目
不要忘记在订单和导出



再做一件事



对单击项目根文件夹>属性> Android>设置您的项目构建目标





检查任何一个目标



检查您的Android-sdk路径



窗口>首选项> Android




I am getting the errors:

Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'DashboardActivity'.
java.lang.NullPointerException

and

[2013-09-02 17:55:31 - DashboardActivity] Project has no project.properties file! Edit the project properties to set one.

and

Description Resource    Path    Location    Type
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files    UserFunctions.java  /DashboardActivity/src/libary   line 1  Java Problem

and

Description Resource    Path    Location    Type
The project was not built since its build path is incomplete. Cannot find the class file for    java.lang.Object. Fix the build path then try building this project DashboardActivity       Unknown Java Problem

I have already tried cleaning the project and I get the same errors. Only the 'DashboardActivity' project is the one getting this error and my other projects work fine. In my properties Order and Export section there is a part that says "Unable to get system libary for this project" I know there should be a proper android.jar file here but I don't see one.

Also, the android tools 'fix project properties' does nothing at all when I click on it.

I have the AndroidManifest.xml file as well.

Ever since I first went to clean my project it has created the file "proguard-project.txt" as well.

What can I do to fix this? Thanks in advance!

NOTE: now I can't acess the gen folder or bin folder (there is no little + for me to click on to open it) and now it's saying that R cannot be resolved to a variable) ???

Error while applying

解决方案

Why don't you do this

Right click on Project Root folder > properties > Java BuildPath > Library Tab

Check whether any of library is missing (showing error with red cross) if yes then add this library to your project don't forget to CHECK it on Order and Export

Do one more thing

Right click on Project Root folder > properties > Android > set your Project Build Target

check any one target

Check your Android-sdk path from

Window > Preference > Android

这篇关于项目没有project.properties文件!编辑项目属性以设置一个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆