Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Gradle Build with CMake, Android App

Gradle Build with CMake, Android App

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 155 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mariam Alshamsi
    wrote on last edited by
    #1

    Hi everyone,

    I'm new to Qt Creator and QML (as you can tell from this being my first thread!).

    To get straight to the point—I started developing an Android app using CMake, and everything was going smoothly until I needed to integrate a package for button layouts in the Android UI. It turns out that Gradle is required for this, but now I'm struggling to install Gradle in my Qt Quick app. It seems like CMake might be causing some kind of conflict, but I'm not sure why.

    Additionally, I’m not sure if Gradle automatically installs the necessary files or if I need to add them manually. I also don’t know how my directory should be structured when integrating Gradle.

    Any insights would be greatly appreciated!

    1 Reply Last reply
    0
    • J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      I'm not very familiar with cmake, as I mostly work on legacy qmake projects, but I think you can go to the projects tab in QtCreator, scroll down to Android BuildSteps and click on add templates to the project.

      That should add the android/gradle templates that get used to compile for android to your project tree, and those you can change yourself


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mariam Alshamsi
        wrote on last edited by Mariam Alshamsi
        #3

        @J-Hilk Didn't understand your comment at first as I been searching where the Build Steps are located. But after watching a video on Youtube, now I do , thank you :)!

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved