Page 1 of 1

Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 18:08
by feldman3
I am trying to build VLC in Eclipse. I have successfully imported all of the projects and am now left with 14 errors, all of which refer to the generated BuildConfig.java class. The BuildConfig that Eclipse is generating contains only a DEBUG member:

Code: Select all

/** Automatically generated file. DO NOT MODIFY */ package org.videolan.vlc; public final class BuildConfig { public final static boolean DEBUG = true; }
So every time the code refers to one of the other variables that is supposed to be in BuildConfig I have an error. I built a debug apk at the command line and from this I have a complete BuildConfig.java under my "generated" directory. Has anyone run into this? Is there a way for Eclipse to generate the same one?

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 18:41
by Jean-Baptiste Kempf
Sorry, you need to use AndroidStudio.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 18:47
by feldman3
I would much prefer to use Android Studio, but everything I have read has directed me towards Eclipse. Would you be able to help me with the import procedure for Android Studio?

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 18:52
by Jean-Baptiste Kempf
No. Gradle is REQUIRED to build VLC.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 18:56
by feldman3
Thank you, but I do not know how to import the project into Android Studio. Do I need to import the same projects that I did in Eclipse, or can do I import the entire "android" directory?

AndroidCompile refers exclusively to Eclipse.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 22:26
by TheBigTime001
This is a bug in the Android documentation, or, as would be more correct, not catching up with the times quickly enough. Whilst Android development has traditionally been done in Eclipse, Google has decided to switch to its own AndroidStudio. The wiki has not been updated yet because this issue has not been major yet. But this could become a big problem for compiling dev versions of VLC-Android, so I think that this will be updated eventually. But despite what the instructions say, indeed you can now only build in AndroidStudio.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 23 Mar 2015 22:28
by TheBigTime001
I am reciting what I know, I have not moved to AndroidStudio yet as I have not updated my Android Tools yet and have not needed to. As soon as I upgrade my Tools, I shall figure out the necessary procedures, update the instructions and then recommend a valid patch for the wiki.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 24 Mar 2015 13:36
by feldman3
Not sure if anyone else has trouble with this, but I figured it out. If you compiled it correctly in Linux you can just import the vlc-android directory into Android Studio and it will import everything you need. Worked for me.

Re: Eclipse is generating incomplete BuildConfig.java

Posted: 01 Apr 2015 09:11
by edwardw
You can use Gradle with Eclipse.