Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Regarding the issue while building the Application in Windows
Forum Updated to NodeBB v4.3 + New Features

Regarding the issue while building the Application in Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.4k 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by Pradeep Kumar
    #1

    Hi,

    I was trying to configure the Android set up for windows , i configured.
    After configuring i tried to build the sample Application, i got the following error.

    Error: Target id 'android--1' is not valid. Use 'android.bat list targets' to get the target ids.
    Generating Android Package
      Input file: E:/Project/Program/build-AndroidSampleProgram-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-libAndroidSampleProgram.so-deployment-settings.json
    
      Output directory: E:/Project/Program/build-AndroidSampleProgram-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/android-build/
    
      Application binary: E:/Project/Program/build-AndroidSampleProgram-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_0-Debug/libAndroidSampleProgram.so
    
      Android build platform: android--1
      Install to device: No
    Buildfile: build.xml does not exist!
    Build failed
    Warning: Android platform 'android--1' does not exist in SDK.
    Building the android package failed!
      -- For more information, run this command with --verbose.
    22:14:55: The process "C:\Qt\QtAndroidWindows5.7\5.7\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project AndroidSampleProgram (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
    When executing step "Build Android APK"
    

    What is issue?

    Guidance is required.

    Thanks,

    Pradeep Kumar
    Qt,QML Developer

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which Android SDK/NDK did you install ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        Hi,

        I uninstalled and installed once again, i am not getting the above mentioned error.

        I installed
        JDK : Java 8u102.
        SDK : installer_r24.4.1-windows
        NDK : android-ndk-r12-windows-x86
        Apache ant : Apache Ant 1.9.7

        I have installed and provided path in environmental variables.
        I am using Windows 8.1 OS, Qt 5.7 version.

        I am facing problem in deployment, i am able to compile the application , but when i try to deploy in my android device or in emulator, i am getting error as deployment failed, error during deployment.

        Guidance is required,

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you try to use gradle in place of ant ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on last edited by Pradeep Kumar
            #5

            No i didnt install gradle.
            Do I need to go with gradle instead of ant?.

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              There's no need to per se, however AFAIK, it's what is currently used for "classic" Android development.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Pradeep KumarP Offline
                Pradeep KumarP Offline
                Pradeep Kumar
                wrote on last edited by
                #7

                Thanks for the reply, i'l try installing gradle and test it in my android device and let u know.

                And this might be silly, what is AFAIK?

                Pradeep Kumar
                Qt,QML Developer

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  AFAIK = As Far As I Know

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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