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
Forum Updated to NodeBB v4.3 + New Features

Using Android Studio

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 951 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 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?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • V vlada

      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?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on 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 last edited by
        #3

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

        Pablo J. RoginaP 1 Reply Last reply
        0
        • V vlada

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

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on 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

          • Login

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