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. [Android] Issues with ant
QtWS25 Last Chance

[Android] Issues with ant

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 3 Posters 6.7k 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
    Moster
    wrote on last edited by
    #2

    Show your android configuration in the Qt creator.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Flamaros
      wrote on last edited by
      #3

      Which part of my android configuration can be wrong? Because I had already tested a lot of think.

      My android sdk and ndk seems correctly configured, and it's the same for ant and jdk paths.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Moster
        wrote on last edited by
        #4

        Could you pls show a screenshot of it?
        Btw, make sure you have the x86 ndk, but this most likely wont cause this issue

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Flamaros
          wrote on last edited by
          #5

          "Screenshot":https://docs.google.com/file/d/0BygGiQfhIcvGN21qaFYwQmNNaFk/edit?usp=sharing

          I have the x86_64 ndk because I under Windows Seven 64bits.
          Please notice, I already get it works with this ndk.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Moster
            wrote on last edited by
            #6

            But Qt is not made for x64 actually, at least not the windows version.
            Btw, update your java jdk. Its outdated and vulnerable.
            What might be an issue is that you are using x86 JDK, but not the x86 NDK.

            Edit: I just checked my windows install of Qt (usually I use linux) and I have the x86 NDK and x64 java.
            http://i.imgur.com/P7iQraG.png
            On linux I also got this clean debug error, but it was related to some false java directory, so it wasnt working.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Flamaros
              wrote on last edited by
              #7

              Ok nothing works.
              I put sdk and ndk in 32bits, upgrade jdk and test ant 1.8.4 version. Every-thing without success.
              I also launched qmake and restarted my computer.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Moster
                wrote on last edited by
                #8

                Hmm, somewhere I read this might happen if you have any kind of special character in one of the resources (like a library name, app name etc.)
                Btw, regarding the resource errors you get. Could you pls go to your Qt project, then /android/res/values and show the content of libs.xml

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AcerExtensa
                  wrote on last edited by
                  #9

                  [quote author="Moster" date="1376038382"]
                  On linux I also got this clean debug error, but it was related to some false java directory, so it wasnt working.[/quote]

                  Simply install java sdk in separate folder, select this folder in QtCreator settings and it will work... have had same problem.

                  After any changes do not forgot to delete "android" folder in your project folder. Run qmake and build your project, android folder will be recreated with current settings.

                  God is Real unless explicitly declared as Integer.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Moster
                    wrote on last edited by
                    #10

                    [quote author="AcerExtensa" date="1376048185"]
                    [quote author="Moster" date="1376038382"]
                    On linux I also got this clean debug error, but it was related to some false java directory, so it wasnt working.[/quote]

                    Simply install java sdk in separate folder, select this folder in QtCreator settings and it will work... have had same problem.

                    After any changes do not forgot to delete "android" folder in your project folder. Run qmake and build your project, android folder will be recreated with current settings.
                    [/quote]

                    Thanks, but I resolved this error ages ago :) I just said that it was related to a wrong java sdk folder in my android configuration

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AcerExtensa
                      wrote on last edited by
                      #11

                      Oh, ok, but for Flamaros try this:

                      bq. After any changes do not forgot to delete “android” folder in your project folder. Run qmake and build your project, android folder will be recreated with current settings.

                      God is Real unless explicitly declared as Integer.

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        Flamaros
                        wrote on last edited by
                        #12

                        Thanks a lot, It works.

                        We have some issues with the android folder, because we added some java files and do some modifications modifications in the androidManifest to launch our own java Application object.

                        [quote author="AcerExtensa" date="1376048822"]Oh, ok, but for Flamaros try this:

                        bq. After any changes do not forgot to delete “android” folder in your project folder. Run qmake and build your project, android folder will be recreated with current settings. [/quote]

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          Flamaros
                          wrote on last edited by
                          #13

                          I just found that I can use Context.getApplicationContext() instead of inherit QtApplication, to be able to call java methods I need for our extentions

                          1 Reply Last reply
                          0

                          • Login

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