错误使用自动生成的文件BuildConfig.java - Android电子 [英] Error with Autogenerated file BuildConfig.java - Android

查看:1324
本文介绍了错误使用自动生成的文件BuildConfig.java - Android电子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我突然在我的Andr​​oid Eclipse项目的错误。这是一个硬关机后同时运行Eclipse,因此可能有一些用它做。我清理项目,然后做一个版本。我得到上在/根目录自动生成的文件BuildConfig.class以下错误:

I suddenly have an error in my Android eclipse project. This is after a hard shutdown while running eclipse, so that may have something to do with it. I clean the project and then do a build. I get the following error on the BuildConfig.class file that is autogenerated in the /gen dir:

The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files

我也注意到,在我的构建配置JRE据称失踪。因为我已经修正了这个问题,但仍然得到错误。救命啊!

I did notice that in my build configuration the JRE was stated to be missing. I have since fixed this problem, but still get the error. Help!

推荐答案

我能够进入修复项目属性来解决这个问题。右键单击项目 - > Android的工具

I was able to fix the problem by going to "Fix project properties". Right click project-->android tools.

不知道是什么原因导致这个错误。

Do not know what caused this error.

这篇关于错误使用自动生成的文件BuildConfig.java - Android电子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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