无法在 Eclipse 中创建 BuildConfig 类错误消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16679786/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Failed to create BuildConfig class error message in eclipse
提问by idan
i change nothing in google-play-services_lib SDK but i have x on this project and in console
this error message "Failed to create BuildConfig class"
我在 google-play-services_lib SDK 中没有做任何更改,但我在这个项目和控制台中有 x 这个错误消息 "Failed to create BuildConfig class"
Recently I have not changed anything in google-play-services_lib project or settings or update Eclipse
最近我没有在 google-play-services_lib 项目或设置中更改任何内容或更新 Eclipse
when i try to clean the project i receive problem occurred with those details:
当我尝试清理项目时,我收到这些细节出现的问题:
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'google-play-services_lib'.
Problems encountered while deleting resources.
Could not delete 'C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\AndroidManifest.xml'.
Problems encountered while deleting files.
Could not delete: C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\AndroidManifest.xml.
Problems encountered while deleting resources.
Could not delete 'C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\AndroidManifest.xml'.
Problems encountered while deleting files.
Could not delete: C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\AndroidManifest.xml.
回答by idan
Operate eclipse as a manager allowed to eclipse to make changes in google-play-services_lib files
以允许 eclipse 的管理员身份操作 eclipse 以在 google-play-services_lib 文件中进行更改
Solution :
解决方案 :
start the eclipse as administrator. to do so : Close eclipse and then => right click on eclipse Icon => Run as administrator
以管理员身份启动eclipse。这样做:关闭eclipse然后=>右键单击eclipse图标=>以管理员身份运行
回答by lopez.mikhael
I think your problem is just the latest update of the SDK.
我认为您的问题只是 SDK 的最新更新。
Test the following operations on two projects :
在两个项目上测试以下操作:
- In the project properties (eclipse) -> java build path -> order and export make sure that all your jars in the libs folder are checked.
- And "Android Tools -> Fix Project Properties"
- And "Project -> Clean"
- 在项目属性 (eclipse) -> java build path -> order 和 export 中确保检查 libs 文件夹中的所有 jars。
- 和“Android 工具 -> 修复项目属性”
- 和“项目 - >清洁”
I hope you have helped!
我希望你有帮助!