Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Eclipse issue Failed to create BuildConfig class

I am getting "Failed to create BuildConfig class" error while cleaning android project in eclipse. I have recently installed Eclipse Juno for Mobile developers and while I was trying to import my existing android applications, Eclipse started giving me this kind of error.

Eclipse is working fine If I create new android projects. What could be the possible cause and probable solution for this issue?

I am using OS - Windows Server 2008

like image 783
silwar Avatar asked Jul 20 '12 06:07

silwar


1 Answers

I had the error after updating (installing) Juno and letting it migrate my workspace and local git repo. Before that error I got another error:

JavaBuilder handling ImageBuilderInternalException while building: <projectname>

Finally I found out that the error was caused by file perms and the problem resolved after resetting them:

chown <me>:<me> <my-repo>

The reason behind the broken permissions: during the process of installing the MOTODEV plugins to Eclipse JUNO I had to start my Eclipse with 'sudo'. Obviously that run overwrote some of my files during the automatic build.

like image 81
asksven Avatar answered Oct 27 '22 16:10

asksven