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. [SOLVED]Deployment to android device failed due to JAVA_HOME
QtWS25 Last Chance

[SOLVED]Deployment to android device failed due to JAVA_HOME

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.5k 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.
  • H Offline
    H Offline
    heatblazer
    wrote on last edited by
    #1

    Hello, I was trying to deploy to my android device. I used to be able long time ago but now it gives me this compile error:
    @
    10:39:38: Running steps for project MathForFun...
    10:39:38: Configuration unchanged, skipping qmake step.
    10:39:38: Starting: "/bin/make"
    make: Nothing to be done for `first'.
    10:39:39: The process "/bin/make" exited normally.
    10:39:39: Removing directory /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build
    10:39:39: Starting: "/bin/make" INSTALL_ROOT=/home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build install
    install -m 755 -p "libMathForFun.so" "/home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/libs/armeabi/libMathForFun.so"
    10:39:39: The process "/bin/make" exited normally.
    10:39:39: Starting: "/opt/Qt5.3.1/5.3/android_armv5/bin/androiddeployqt" --input /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-libMathForFun.so-deployment-settings.json --output /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build --deployment bundled --install --ant /bin/ant --android-platform android-20 --jdk /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65-2.5.2.5.fc20.i386 --device S5570c8839ef6
    10:39:39: Pulling files necessary for debugging.
    10:39:39: Package deploy: Running command '/opt/android/AndroidSDK/platform-tools/adb -s S5570c8839ef6 pull /system/bin/app_process /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/app_process'.
    10:39:39: Package deploy: Running command '/opt/android/AndroidSDK/platform-tools/adb -s S5570c8839ef6 pull /system/lib/libc.so /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/libc.so'.

    BUILD FAILED
    /opt/android/AndroidSDK/tools/ant/build.xml:720: The following error occurred while executing this line:
    /opt/android/AndroidSDK/tools/ant/build.xml:734: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.0.fc20.i386/jre"

    Total time: 3 seconds
    Building the android package failed!
    -- For more information, run this command with --verbose.
    Generating Android Package
    Input file: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-libMathForFun.so-deployment-settings.json
    Output directory: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build
    Application binary: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/libMathForFun.so
    Android build platform: android-20
    Install to device: S5570c8839ef6
    Buildfile: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/build.xml

    -set-mode-check:

    -set-debug-files:

    -check-env:
    [checkenv] Android SDK Tools Revision 23.0.2
    [checkenv] Installed at /opt/android/AndroidSDK

    -setup:
    [echo] Project Name: QtApp
    [gettype] Project Type: Application

    -set-debug-mode:

    -debug-obfuscation-check:

    -pre-build:

    -build-setup:
    [getbuildtools] Using latest Build Tools: 20.0.0
    [echo] Resolving Build Target for QtApp...
    [gettarget] Project Target: Android 4.4W
    [gettarget] API level: 20
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin/res
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin/rsObj
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin/rsLibs
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/gen
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin/classes
    [mkdir] Created dir: /home/ilian/QT5/build-MathForFun-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Release/android-build/bin/dexedLibs
    [echo] ----------
    [echo] Resolving Dependencies for QtApp...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'debug'...
    [subant] No sub-builds to iterate on

    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [echo] Handling aidl files...
    [aidl] Found 2 AIDL files.
    [aidl] Compiling 2 AIDL files.
    [echo] ----------
    [echo] Handling RenderScript files...
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [echo] ----------
    [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.

    -pre-compile:

    -compile:
    10:39:45: The process "/opt/Qt5.3.1/5.3/android_armv5/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project MathForFun (kit: Android for armeabi (GCC 4.8, Qt 5.3.1))
    When executing step 'Deploy to Android device'
    10:39:45: Elapsed time: 00:07.

    @

    And my JAVA_HOME is definitely set in the bashrc. Help please.
    [EDIT] I`ve installed the new RC and the problem is gone.

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2
      This post is deleted!
      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