Mac错误创建Android项目 - “错误运行构建器”Android资源管理器“项目” [英] Mac Error Create Android Project - "Errors running builder 'Android Resource Manager' on project"

查看:121
本文介绍了Mac错误创建Android项目 - “错误运行构建器”Android资源管理器“项目”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了整整一天只是想在我的Mac上创建一个简单的Android应用程序项目(10.7.5)。在项目向导中按完成时,我收到以下错误消息:

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

创建了一个带有空目录的项目,但没有文件生成除了一个名为proguard-project.txt的文件,其中只包含注释。



我只是下载了 ADT Bundle 到我的Mac上



我已经看过这里,并尝试所有的建议,如删除.metadata文件夹,并尝试更改Android项目构建目标。



我也尝试使用Eclipse Juno和开普勒 - 同样的问题。我已经重新安装了Eclipse并重新创建了多个工作区。



所以我很卡住了,这不是开箱即用的。任何帮助将不胜感激。

解决方案

我的Windows机器上有相同的错误。



我将项目文件系统与其他工作项目进行了比较,我发现

  project.properties 

缺少,所以我创建了一个txt文件,并将其重命名为project.properties,然后在我的控制台上收到此消息。

 项目没有project.properties文件!编辑项目属性设置一个

然后我通过项目菜单

  project-> properties- > android->选择&设置项目构建目标。 

然后构建它,一切顺利。



我们只是为该项目设置了一个有效的project.properites文件。


I spent the whole day just trying to create a simple Android Application Project on my Mac (10.7.5). When pressing "Finish" in the project wizard, I got the following error message:

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

A project with empty directories was created, but no files were generated except for a file called "proguard-project.txt", which just contained comments.

I literally just downloaded the ADT Bundle onto my Mac.

I've already had a look at here and tried all the suggestions there, like removing the ".metadata" folder and trying to change the Android "Project Build Target".

I've also tried using Eclipse Juno and Kepler - same problem. I've reinstalled Eclipse and recreated workspaces many many times.

So I'm pretty stuck...it's not working out of the box. Any help would be most appreciated.

解决方案

I got same error on my windows machine.

When I compared project file system with other working project I found that

  project.properties 

was missing, So I Created a txt file and renamed it to "project.properties" then got this message on my console.

 "Project has no project.properties file! Edit the project properties to set one"

Then I went through project menu

project->properties->android->choose & set the "project build target".

then build it.now everything was smooth.

We just setup a valid project.properites file for that project.

这篇关于Mac错误创建Android项目 - “错误运行构建器”Android资源管理器“项目”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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