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. Using Android Studio
Servers for Qt installer are currently down

Using Android Studio

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 920 Views 2 Watching
  • 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.
  • V Offline
    V Offline
    vlada
    wrote on 28 Aug 2018, 15:10 last edited by
    #1

    Hi,

    I like writing my Android specific code in Android Studio because of the syntax highlighting and checks. But unfotunately at the biginning of my code this import fails:

    import org.qtproject.qt5.android.bindings.QtService;
    

    It is quite clear that Android Studio doesn't see it. But unfortunately it brakes a lot of the code checks. Is it possible to fix this?

    P 1 Reply Last reply 28 Aug 2018, 15:28
    0
    • V vlada
      28 Aug 2018, 15:10

      Hi,

      I like writing my Android specific code in Android Studio because of the syntax highlighting and checks. But unfotunately at the biginning of my code this import fails:

      import org.qtproject.qt5.android.bindings.QtService;
      

      It is quite clear that Android Studio doesn't see it. But unfortunately it brakes a lot of the code checks. Is it possible to fix this?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 28 Aug 2018, 15:28 last edited by
      #2

      @vlada it looks like you should set your build/compile path in Android Studio to Qt<version>/<version>/android_armv7/jar, i.e. for Qt 5.9.0 something like Qt5.9.0/5.9/android_armv7/jar

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vlada
        wrote on 29 Aug 2018, 07:27 last edited by
        #3

        I would expect something like this. But unfortunately I can not find such settings in Android Studio.

        P 1 Reply Last reply 29 Aug 2018, 15:02
        0
        • V vlada
          29 Aug 2018, 07:27

          I would expect something like this. But unfortunately I can not find such settings in Android Studio.

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 29 Aug 2018, 15:02 last edited by
          #4

          @vlada I see, I really have no experience with Android Studio since I use Eclipse for Java development.
          However, think that if you have an external Java library you want to use with your Android app, you'll face this same situation you're experiencing with the Qt Activity.
          I suggest looking for tips about adding external libraries/jar files to your Android Studio project.i.e. this question may help.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1

          1/4

          28 Aug 2018, 15:10

          • Login

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