[Interest] Android Studio and Qt

Jason H jhihn at gmx.com
Thu Feb 25 03:38:00 CET 2016


How does one "regenerate it back into the build directory"?

I would figure that there would be some ability to extend the supplied QtActivity and tell the build system to use that? But it seems like I need to set up some build steps to overwrite the supplied activity? That doesn't seem 'Qt' to me.

Many thanks for the insights so far!

> Sent: Wednesday, February 24, 2016 at 8:25 PM
> From: "md at rpzdesign.com" <md at rpzdesign.com>
> To: No recipient address
> Cc: "Jason H" <jhihn at gmx.com>, "interest at qt-project.org" <interest at qt-project.org>
> Subject: Re: [Interest] Android Studio and Qt
>
> Yes, edit the java code uptream and regenerate it back into the build 
> directory.
> 
> 
> 
> On 2/24/2016 6:41 PM, Jason H wrote:
> > Hrm, that's not what the instructions said, but I can see your point. If correct though, I'd be usin the Qt-supplied/generated classes, but that means I'm editing code in the build dir? Shouldn't the code be under my project's android dir?
> >
> > The article alludes to a projdir/android/src/com/company/... directory.
> >
> >
> >> Sent: Wednesday, February 24, 2016 at 5:59 PM
> >> From: "md at rpzdesign.com" <md at rpzdesign.com>
> >> To: interest at qt-project.org
> >> Subject: Re: [Interest] Android Studio and Qt
> >>
> >> Jason:
> >>
> >> Its a little tricky, I think you have to open up the created project in
> >> the build directory, not try to import from the source directory tree
> >> where the qmake pro file is located.
> >>
> >> Look at Build Settings -> Build Steps -> Make: main in /bla/bla/bla
> >> directory and find the Debug -> android-build directory and magically
> >> inside this directory is another gradle file.
> >>
> >> Import from that build location and Android Studio will come up and be
> >> able to process the java files while the compiled so C++ files are
> >> loaded but not able to step into them as a native library.
> >>
> >> That help?
> >>
> >> md
> >>
> >> On 2/24/2016 4:41 PM, Jason H wrote:
> >>> There is a step missing in http://www.kdab.com/qt-android-episode-6/
> >>> Where we go from importing the build.gradle to somehow having Java source to start debugging.
> >>>
> >>> Can someone fill in the missing steps?
> >>> I didn't find any .java files.
> >>> _______________________________________________
> >>> Interest mailing list
> >>> Interest at qt-project.org
> >>> http://lists.qt-project.org/mailman/listinfo/interest
> >>>
> >> _______________________________________________
> >> Interest mailing list
> >> Interest at qt-project.org
> >> http://lists.qt-project.org/mailman/listinfo/interest
> >>
> 
> 



More information about the Interest mailing list