Eclipse is generating incomplete BuildConfig.java

VLC for Android and Chrome OS specific usage questions
feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Eclipse is generating incomplete BuildConfig.java

Postby feldman3 » 23 Mar 2015 18:08

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Eclipse is generating incomplete BuildConfig.java

Postby Jean-Baptiste Kempf » 23 Mar 2015 18:41

Sorry, you need to use AndroidStudio.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Eclipse is generating incomplete BuildConfig.java

Postby feldman3 » 23 Mar 2015 18:47

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Eclipse is generating incomplete BuildConfig.java

Postby Jean-Baptiste Kempf » 23 Mar 2015 18:52

No. Gradle is REQUIRED to build VLC.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Eclipse is generating incomplete BuildConfig.java

Postby feldman3 » 23 Mar 2015 18:56

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.

TheBigTime001
Cone that earned his stripes
Cone that earned his stripes
Posts: 123
Joined: 30 May 2011 03:59
VLC version: 1.1.9-3.0git
Operating System: Fedora Xfce
Location: USA

Re: Eclipse is generating incomplete BuildConfig.java

Postby TheBigTime001 » 23 Mar 2015 22:26

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.
If we can simulate real life so accurately, then isn't our reality maybe just one great big simulation as well?
Please don't use PMs for support questions.

TheBigTime001
Cone that earned his stripes
Cone that earned his stripes
Posts: 123
Joined: 30 May 2011 03:59
VLC version: 1.1.9-3.0git
Operating System: Fedora Xfce
Location: USA

Re: Eclipse is generating incomplete BuildConfig.java

Postby TheBigTime001 » 23 Mar 2015 22:28

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.
If we can simulate real life so accurately, then isn't our reality maybe just one great big simulation as well?
Please don't use PMs for support questions.

feldman3
Blank Cone
Blank Cone
Posts: 16
Joined: 23 Mar 2015 18:00

Re: Eclipse is generating incomplete BuildConfig.java

Postby feldman3 » 24 Mar 2015 13:36

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.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Eclipse is generating incomplete BuildConfig.java

Postby edwardw » 01 Apr 2015 09:11

You can use Gradle with Eclipse.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 13 guests