This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Kawa with Android Studio and Gradle


On 07/11/2013 10:52 PM, Marius Kjeldahl wrote:
On 07/12/2013 12:59 AM, Per Bothner wrote:
You may need to pass '-target 6' to the javac command-line.
Not sure the best way to do that, but perhaps you can experiment.
Perhaps:
    JAVACFLAGS='-g -target 6' ./configure --with-android xxxx


I used JAVACFLAGS='-g -target 6 -source 6' and it works, despite
generating this warning when compiling:

   warning: [options] bootstrap class path not set in conjunction
            with -source 1.6

I guess a "real" fix would simply be to downgrade to java 6, even though
that feels like going in the wrong direction.. ;-)

I suspect what you're really supposed to do is use the actual
Android (Harmony) core classes.

With this and your latest release r7525, the code now compiles and works
fine! I will now experiment a bit more and see how I can do easy builds
with the new gradle build system that comes with Android Studio. I'll
report back when I have anything of value.

Great - thanks!

--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]