This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa with Android Studio and Gradle
- From: Marius Kjeldahl <marius at kjeldahl dot net>
- To: Per Bothner <per at bothner dot com>
- Cc: kawa at sourceware dot org
- Date: Fri, 12 Jul 2013 07:52:15 +0200
- Subject: Re: Kawa with Android Studio and Gradle
- References: <51DAD2A8 dot 80807 at kjeldahl dot net> <51DB6E01 dot 9060702 at bothner dot com> <51DBAE9A dot 6050400 at kjeldahl dot net> <51DBC62F dot 2080707 at bothner dot com> <51DE553E dot 10201 at bothner dot com> <51DE5703 dot 5070903 at kjeldahl dot net> <51DF2947 dot 90402 at bothner dot com> <51DF31DB dot 6010206 at kjeldahl dot net> <51DF38C2 dot 8050006 at bothner dot com>
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.. ;-)
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.
Thanks,
Marius K.