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. Compile error while building a windows project for android

Compile error while building a windows project for android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 2.0k 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.
  • N Offline
    N Offline
    neda
    wrote on last edited by neda
    #1

    Hi,

    I have windows 10 (64 bit) and Qt 5.7 (32 bit) and Visual Studio 2015 on my computer.

    I installed Qt 5.7.0 for Android and "jdk-7u67-windows-x64_2", "installer_r24.4.1-windows", "apache-ant-1.9.7", "android-ndk-r12b", "usb_driver".

    Menu Tools > Options > Android:

    JDK location: C:\Program Files\Java\jdk1.7.0_67
    Android SDK location: C:\Users\neda\AppData\Local\Android\android-sdk
    Android NDK location: C:\Users\neda\AppData\Local\Android\android-ndk-r12b
    Ant executable: C:\apache-ant-1.9.7\bin\ant.bat

    I have error while building a project for android.

    Compile Output:

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring root project 'android-build'.
    > Could not resolve all dependencies for configuration ':classpath'.
       > Could not resolve com.android.tools.build:gradle:1.1.0.
         Required by:
             :android-build:unspecified
          > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.1.0/gradle-1.1.0.pom'.
             > Connection to https://jcenter.bintray.com refused
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    BUILD FAILED
    
    Total time: 45.181 secs
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Styles.Material
    Building the android package failed!
      -- For more information, run this command with --verbose.
    15:06:20: The process "C:\Qt2\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project MyProject (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
    The kit Android for armeabi-v7a (GCC 4.9, Qt 5.7.0) has configuration issues which might be the root cause for this problem.
    When executing step "Build Android APK"
    
    
    G 1 Reply Last reply
    0
    • K Offline
      K Offline
      kamelEddine
      wrote on last edited by
      #2

      I had problem with android compilation ,i think he is version sdk ndk problem ,just use ndk r10 , sdk r23 and jdk 6(find them in the archive or some where else) ,compile with api 18 or > and all will work fine

      1 Reply Last reply
      1
      • N neda

        Hi,

        I have windows 10 (64 bit) and Qt 5.7 (32 bit) and Visual Studio 2015 on my computer.

        I installed Qt 5.7.0 for Android and "jdk-7u67-windows-x64_2", "installer_r24.4.1-windows", "apache-ant-1.9.7", "android-ndk-r12b", "usb_driver".

        Menu Tools > Options > Android:

        JDK location: C:\Program Files\Java\jdk1.7.0_67
        Android SDK location: C:\Users\neda\AppData\Local\Android\android-sdk
        Android NDK location: C:\Users\neda\AppData\Local\Android\android-ndk-r12b
        Ant executable: C:\apache-ant-1.9.7\bin\ant.bat

        I have error while building a project for android.

        Compile Output:

        FAILURE: Build failed with an exception.
        
        * What went wrong:
        A problem occurred configuring root project 'android-build'.
        > Could not resolve all dependencies for configuration ':classpath'.
           > Could not resolve com.android.tools.build:gradle:1.1.0.
             Required by:
                 :android-build:unspecified
              > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.1.0/gradle-1.1.0.pom'.
                 > Connection to https://jcenter.bintray.com refused
        
        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
        
        BUILD FAILED
        
        Total time: 45.181 secs
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
        Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Styles.Material
        Building the android package failed!
          -- For more information, run this command with --verbose.
        15:06:20: The process "C:\Qt2\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 14.
        Error while building/deploying project MyProject (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
        The kit Android for armeabi-v7a (GCC 4.9, Qt 5.7.0) has configuration issues which might be the root cause for this problem.
        When executing step "Build Android APK"
        
        
        G Offline
        G Offline
        gen1izh
        wrote on last edited by
        #3

        @neda use jdk8

        N 1 Reply Last reply
        1
        • G gen1izh

          @neda use jdk8

          N Offline
          N Offline
          neda
          wrote on last edited by
          #4

          @gen1izh

          Thank you

          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