Error when trying to Build



  • Hello.

    I did a reskin/recode of Flappy Bird and I am now trying to test my first Android app on my Android device.
    I am getting an error. This is what I got:

    https://www.dropbox.com/s/0bffzwtwpfale0h/Skjermbilde 2016-03-31 kl. 01.53.58.png?dl=0

    https://www.dropbox.com/s/5vr9ilrstwy4zuj/Skjermbilde 2016-03-31 kl. 01.56.58.png?dl=0

    https://www.dropbox.com/s/xlrbqaqu8kqncse/Skjermbilde 2016-03-31 kl. 01.54.26.png?dl=0

    https://www.dropbox.com/s/ify3mlme49x2goa/Skjermbilde 2016-03-31 kl. 01.54.42.png?dl=0

    Error:

    VPApplication: no such file or directory
    

    I get the same error for QApplication and QQmlApplicationEninge if I remove the VPApplication

    Anyone got a clue? I want to figure this out so bad! :)


  • Moderators

    I don't know what VPApplication is and where it is located - you need to add the path to the directory where it is located (in PRO file INCLUDEPATH += <your path>).
    Regarding QApplication and QQmlApplicationEngine: do you have QT += widgets and QT += qml in your PRO file?



  • Thanks for your response.
    I just found this info inside the .pro. It might be useful:
    https://www.dropbox.com/s/qpa0guy42ya80he/Skjermbilde 2016-03-31 kl. 11.28.53.png?dl=0

    What does it explain?

    I edited the .PRO file and then I got a new error:
    https://www.dropbox.com/s/q191ar7vc3ncyvs/Skjermbilde 2016-03-31 kl. 12.14.38.png?dl=0


  • Moderators

    Can you check what error you get in "Compile Output"?



  • @jsulm said:

    Can you check what error you get in "Compile Output"?

    I am getting this error:

    //13:20:48: Running steps for project FlappyBird...
    13:20:48: Configuration unchanged, skipping qmake step.
    13:20:48: Starting: "/usr/bin/make" 
    /Users/emiliegronsberg/Downloads/android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../FlappyBird -I. -I<VPApplication> -I../../Qt/5.6/android_armv7/include -I../../Qt/5.6/android_armv7/include/QtWidgets -I../../Qt/5.6/android_armv7/include/QtGui -I../../Qt/5.6/android_armv7/include/QtQml -I../../Qt/5.6/android_armv7/include/QtNetwork -I../../Qt/5.6/android_armv7/include/QtCore -I. -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/include -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I../android-ndk-r10b/platforms/android-9/arch-arm/usr/include -I../../Qt/5.6/android_armv7/mkspecs/android-g++ -o main.o ../FlappyBird/main.cpp
    /bin/sh: VPApplication: No such file or directory
    make: *** [main.o] Error 1
    13:20:49: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project FlappyBird (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.6.0))
    When executing step "Make"
    13:20:49: Elapsed time: 00:01.
    

    I am also getting the same error when building a "New - Empty V-Play 2 Project"


  • Moderators

    Where is VPApplication.h located?



  • @jsulm

    Seems like it is placed in the VPlaySDK -> 5.6 -> clang_64 -> Include -> VPlay
    https://www.dropbox.com/s/c3muyi4b0fxu2nm/Skjermbilde 2016-03-31 kl. 13.24.39.png?dl=0

    Is this correct?


  • Moderators

    Did you add QT += widgets and QT += qml to your PRO file as I mentioned before?



  • Hi.

    Yes I added all these to the .PRO:

    INCLUDEPATH += <VPApplication>
    QT += widgets
    QT += qml

    Still the same error.
    Seems like I am missing some architechtures and som Qt versions when I am locating the latest NDK. Does this affect the error I am getting?



  • Hello. I figured the error. I was missing a component in the Maintain Engine Installer.

    App is building now - BUT - I am getting another error. Here is the output:

    Anyone knows what this means? I did a fresh install of both app and program. (Output divided into two posts)

    23:27:20: Running steps for project FlappyBird...
    23:27:20: Starting: "/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/bin/qmake" /Users/emiliegronsberg/Downloads/FlappyBird/FlappyBird.pro -r -spec android-g++
    Project MESSAGE: Link with V-Play library: VPlay
    Project MESSAGE: MAINPROFILEPWD: /Users/emiliegronsberg/Downloads/FlappyBird
    23:27:34: The process "/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/bin/qmake" exited normally.
    23:27:34: Starting: "/usr/bin/make"
    Makefile:953: warning: overriding commands for target install_itemqmlFolder' Makefile:935: warning: ignoring old commands for targetinstall_itemqmlFolder'
    Makefile:957: warning: overriding commands for target uninstall_itemqmlFolder' Makefile:939: warning: ignoring old commands for targetuninstall_itemqmlFolder'
    Makefile:962: warning: overriding commands for target install_itemassetsFolder' Makefile:944: warning: ignoring old commands for targetinstall_itemassetsFolder'
    Makefile:966: warning: overriding commands for target uninstall_itemassetsFolder' Makefile:948: warning: ignoring old commands for targetuninstall_itemassetsFolder'
    /Users/emiliegronsberg/Downloads/android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -fno-builtin-memmove -std=c++11 -O2 -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -mthumb -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_3DQUICK_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_3DINPUT_LIB -DQT_3DRENDER_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../FlappyBird -I. -I../../V-PlaySDK/5.6/android_armv7/include/VPlay -I../../V-PlaySDK/5.6/android_armv7/include -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DQuick -I../../V-PlaySDK/5.6/android_armv7/include/QtQuick -I../../V-PlaySDK/5.6/android_armv7/include/QtWidgets -I../../V-PlaySDK/5.6/android_armv7/include/QtMultimedia -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DInput -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DRender -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DCore -I../../V-PlaySDK/5.6/android_armv7/include/QtOpenGLExtensions -I../../V-PlaySDK/5.6/android_armv7/include/QtGui -I../../V-PlaySDK/5.6/android_armv7/include/QtQml -I../../V-PlaySDK/5.6/android_armv7/include/QtWebSockets -I../../V-PlaySDK/5.6/android_armv7/include/QtNetwork -I../../V-PlaySDK/5.6/android_armv7/include/QtSql -I../../V-PlaySDK/5.6/android_armv7/include/QtConcurrent -I../../V-PlaySDK/5.6/android_armv7/include/QtCore -I. -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/include -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I../android-ndk-r10b/platforms/android-9/arch-arm/usr/include -I../../V-PlaySDK/5.6/android_armv7/mkspecs/android-g++ -o main.o ../FlappyBird/main.cpp
    /Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/bin/rcc -name resources_user ../../V-PlaySDK/5.6/android_armv7/mkspecs/common/vplay/resources_user.qrc -o qrc_resources_user.cpp
    /Users/emiliegronsberg/Downloads/android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -fno-builtin-memmove -std=c++11 -O2 -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -mthumb -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_3DQUICK_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_3DINPUT_LIB -DQT_3DRENDER_LIB -DQT_3DCORE_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../FlappyBird -I. -I../../V-PlaySDK/5.6/android_armv7/include/VPlay -I../../V-PlaySDK/5.6/android_armv7/include -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DQuick -I../../V-PlaySDK/5.6/android_armv7/include/QtQuick -I../../V-PlaySDK/5.6/android_armv7/include/QtWidgets -I../../V-PlaySDK/5.6/android_armv7/include/QtMultimedia -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DInput -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DRender -I../../V-PlaySDK/5.6/android_armv7/include/Qt3DCore -I../../V-PlaySDK/5.6/android_armv7/include/QtOpenGLExtensions -I../../V-PlaySDK/5.6/android_armv7/include/QtGui -I../../V-PlaySDK/5.6/android_armv7/include/QtQml -I../../V-PlaySDK/5.6/android_armv7/include/QtWebSockets -I../../V-PlaySDK/5.6/android_armv7/include/QtNetwork -I../../V-PlaySDK/5.6/android_armv7/include/QtSql -I../../V-PlaySDK/5.6/android_armv7/include/QtConcurrent -I../../V-PlaySDK/5.6/android_armv7/include/QtCore -I. -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/include -I../android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I../android-ndk-r10b/platforms/android-9/arch-arm/usr/include -I../../V-PlaySDK/5.6/android_armv7/mkspecs/android-g++ -o qrc_resources_user.o qrc_resources_user.cpp
    /Users/emiliegronsberg/Downloads/android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/Users/emiliegronsberg/Downloads/android-ndk-r10b/platforms/android-9/arch-arm/ -Wl,-soname,libFlappyBird.so -Wl,-rpath=/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libFlappyBird.so main.o qrc_resources_user.o -L/Users/emiliegronsberg/Downloads/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -L/Users/emiliegronsberg/Downloads/android-ndk-r10b/platforms/android-9/arch-arm//usr/lib -L/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/lib -lVPlay -lQt53DQuick -lQt5Quick -lQt5Widgets -lQt5Multimedia -lQt53DInput -lQt53DRender -lQt53DCore -lQt5OpenGLExtensions -L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -L/opt/android/ndk/platforms/android-9/arch-arm//usr/lib -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc -lQt5Gui -lQt5Qml -lQt5WebSockets -lQt5Network -lQt5Sql -lQt5Concurrent -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    23:27:40: The process "/usr/bin/make" exited normally.
    23:27:40: Starting: "/usr/bin/make" INSTALL_ROOT=/Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build install
    Makefile:953: warning: overriding commands for target install_itemqmlFolder' Makefile:935: warning: ignoring old commands for targetinstall_itemqmlFolder'
    Makefile:957: warning: overriding commands for target uninstall_itemqmlFolder' Makefile:939: warning: ignoring old commands for targetuninstall_itemqmlFolder'
    Makefile:962: warning: overriding commands for target install_itemassetsFolder' Makefile:944: warning: ignoring old commands for targetinstall_itemassetsFolder'
    Makefile:966: warning: overriding commands for target uninstall_itemassetsFolder' Makefile:948: warning: ignoring old commands for targetuninstall_itemassetsFolder'
    cp -f -R /Users/emiliegronsberg/Downloads/FlappyBird/qml /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/assets/
    cp -f -R /Users/emiliegronsberg/Downloads/FlappyBird/assets /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/assets/
    install -m 755 -p libFlappyBird.so /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/armeabi-v7a/libFlappyBird.so
    23:27:40: The process "/usr/bin/make" exited normally.
    23:27:40: Starting: "/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/bin/androiddeployqt" --input /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-libFlappyBird.so-deployment-settings.json --output /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build --deployment bundled --android-platform android-23 --jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home --ant /Users/emiliegronsberg/Downloads/apache-ant-1.9.6/bin/ant
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
    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
    Generating Android Package
    Input file: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-libFlappyBird.so-deployment-settings.json
    Output directory: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/
    Application binary: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/libFlappyBird.so
    Android build platform: android-23
    Install to device: No
    Buildfile: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/build.xml



  • -set-mode-check:
    
    -set-debug-files:
    
    -check-env:
     [checkenv] Android SDK Tools Revision 24.4.1
     [checkenv] Installed at /Users/emiliegronsberg/Downloads/android-sdk-macosx
    
    -setup:
         [echo] Project Name: QtApp
      [gettype] Project Type: Application
    
    -set-debug-mode:
    
    -debug-obfuscation-check:
    
    -pre-build:
    
    -build-setup:
    [getbuildtools] Using latest Build Tools: 24.0.0 rc2
         [echo] Resolving Build Target for QtApp...
    [gettarget] Project Target:   Android 6.0
    [gettarget] API level:        23
         [echo] ----------
         [echo] Creating output directories if needed...
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/res
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/rsObj
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/rsLibs
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/gen
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/classes
        [mkdir] Created dir: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-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...
         [aapt] warning: string 'fatal_error_msg' has no default translation.
         [aapt] warning: string 'ministro_needed_msg' has no default translation.
         [aapt] warning: string 'ministro_not_found_msg' has no default translation.
         [echo] ----------
         [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.
    
    -pre-compile:
    
    -compile:
        [javac] Compiling 6 source files to /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/classes
        [javac] warning: java/io/File.class(java/io:File.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/IOException.class(java/io:IOException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/OutputStream.class(java/io:OutputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/InputStream.class(java/io:InputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/FileOutputStream.class(java/io:FileOutputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/FileInputStream.class(java/io:FileInputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/DataOutputStream.class(java/io:DataOutputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/DataInputStream.class(java/io:DataInputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/reflect/Field.class(java/lang/reflect:Field.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/reflect/Method.class(java/lang/reflect:Method.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/util/ArrayList.class(java/util:ArrayList.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/util/Arrays.class(java/util:Arrays.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/app/Activity.class(android/app:Activity.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/app/AlertDialog.class(android/app:AlertDialog.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/app/Dialog.class(android/app:Dialog.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/ComponentName.class(android/content:ComponentName.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/Context.class(android/content:Context.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/DialogInterface.class(android/content:DialogInterface.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/Intent.class(android/content:Intent.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/ServiceConnection.class(android/content:ServiceConnection.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/pm/ActivityInfo.class(android/content/pm:ActivityInfo.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/pm/PackageManager.class(android/content/pm:PackageManager.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/pm/PackageManager$NameNotFoundException.class(android/content/pm:PackageManager$NameNotFoundException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/pm/PackageInfo.class(android/content/pm:PackageInfo.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/res/Configuration.class(android/content/res:Configuration.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/res/Resources.class(android/content/res:Resources.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/res/Resources$Theme.class(android/content/res:Resources$Theme.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/res/AssetManager.class(android/content/res:AssetManager.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/graphics/Bitmap.class(android/graphics:Bitmap.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/graphics/Canvas.class(android/graphics:Canvas.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/graphics/drawable/ColorDrawable.class(android/graphics/drawable:ColorDrawable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/net/Uri.class(android/net:Uri.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Build.class(android/os:Build.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Bundle.class(android/os:Bundle.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/IBinder.class(android/os:IBinder.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/RemoteException.class(android/os:RemoteException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/util/AttributeSet.class(android/util:AttributeSet.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/util/Log.class(android/util:Log.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ContextMenu.class(android/view:ContextMenu.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ContextMenu$ContextMenuInfo.class(android/view:ContextMenu$ContextMenuInfo.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/KeyEvent.class(android/view:KeyEvent.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/Menu.class(android/view:Menu.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/MenuItem.class(android/view:MenuItem.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/MotionEvent.class(android/view:MotionEvent.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/View.class(android/view:View.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/Window.class(android/view:Window.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/WindowManager.class(android/view:WindowManager.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/WindowManager$LayoutParams.class(android/view:WindowManager$LayoutParams.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/accessibility/AccessibilityEvent.class(android/view/accessibility:AccessibilityEvent.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: dalvik/system/DexClassLoader.class(dalvik/system:DexClassLoader.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/LayoutInflater.class(android/view:LayoutInflater.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/LayoutInflater$Factory2.class(android/view:LayoutInflater$Factory2.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/LayoutInflater$Factory.class(android/view:LayoutInflater$Factory.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Object.class(java/lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/Window$Callback.class(android/view:Window$Callback.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/KeyEvent$Callback.class(android/view:KeyEvent$Callback.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Parcelable.class(android/os:Parcelable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/InputEvent.class(android/view:InputEvent.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/View$OnCreateContextMenuListener.class(android/view:View$OnCreateContextMenuListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/graphics/drawable/Drawable.class(android/graphics/drawable:Drawable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/graphics/drawable/Drawable$Callback.class(android/graphics/drawable:Drawable$Callback.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/accessibility/AccessibilityEventSource.class(android/view/accessibility:AccessibilityEventSource.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/ComponentCallbacks2.class(android/content:ComponentCallbacks2.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/ComponentCallbacks.class(android/content:ComponentCallbacks.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ContextThemeWrapper.class(android/view:ContextThemeWrapper.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/ContextWrapper.class(android/content:ContextWrapper.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/String.class(java/lang:String.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/CharSequence.class(java/lang:CharSequence.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/util/HashMap.class(java/util:HashMap.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/app/Application.class(android/app:Application.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/IInterface.class(android/os:IInterface.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Binder.class(android/os:Binder.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Parcel.class(android/os:Parcel.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ViewDebug.class(android/view:ViewDebug.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ViewDebug$ExportedProperty.class(android/view:ViewDebug$ExportedProperty.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ViewDebug$IntToString.class(android/view:ViewDebug$IntToString.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/view/ViewDebug$FlagToString.class(android/view:ViewDebug$FlagToString.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Override.class(java/lang:Override.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/annotation/Annotation.class(java/lang/annotation:Annotation.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/annotation/Target.class(java/lang/annotation:Target.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/annotation/ElementType.class(java/lang/annotation:ElementType.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/annotation/Retention.class(java/lang/annotation:Retention.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/annotation/RetentionPolicy.class(java/lang/annotation:RetentionPolicy.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Error.class(java/lang:Error.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/util/AndroidException.class(android/util:AndroidException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Exception.class(java/lang:Exception.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Throwable.class(java/lang:Throwable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/RuntimeException.class(java/lang:RuntimeException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Class.class(java/lang:Class.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/IntentSender.class(android/content:IntentSender.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/IntentSender$SendIntentException.class(android/content:IntentSender$SendIntentException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/FileNotFoundException.class(java/io:FileNotFoundException.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/Build$VERSION.class(android/os:Build$VERSION.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/os/BaseBundle.class(android/os:BaseBundle.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/app/AlertDialog$Builder.class(android/app:AlertDialog$Builder.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/io/Serializable.class(java/io:Serializable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: java/lang/Comparable.class(java/lang:Comparable.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/R.class(android:R.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/R$string.class(android:R$string.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] warning: android/content/DialogInterface$OnClickListener.class(android/content:DialogInterface$OnClickListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.
        [javac] It is recommended that the compiler be upgraded.
        [javac] Note: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/src/org/qtproject/qt5/android/bindings/QtActivity.java uses or overrides a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] 100 warnings
    
    -post-compile:
    
    -obfuscate:
    
    -dex:
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/bin/classes
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/QtAndroidBearer-bundled.jar
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/QtAndroid-bundled.jar
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/VPlay.jar
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/QtAndroidAccessibility-bundled.jar
          [dex] input: /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/QtMultimedia-bundled.jar
          [dex] Pre-Dexing /Users/emiliegronsberg/Downloads/build-FlappyBird-Android_for_armeabi_v7a_GCC_4_8_Qt_5_6_0-Release/android-build/libs/QtAndroidBearer-bundled.jar -> QtAndroidBearer-bundled-d026881c1637c93202a830b7fe80f00c.jar
           [dx] Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
           [dx] 	at java.lang.ClassLoader.defineClass1(Native Method)
           [dx] 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
           [dx] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
           [dx] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
           [dx] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
           [dx] 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
           [dx] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
           [dx] 	at java.security.AccessController.doPrivileged(Native Method)
           [dx] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
           [dx] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
           [dx] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
           [dx] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    
    BUILD FAILED
    /Users/emiliegronsberg/Downloads/android-sdk-macosx/tools/ant/build.xml:888: The following error occurred while executing this line:
    /Users/emiliegronsberg/Downloads/android-sdk-macosx/tools/ant/build.xml:890: The following error occurred while executing this line:
    /Users/emiliegronsberg/Downloads/android-sdk-macosx/tools/ant/build.xml:902: The following error occurred while executing this line:
    /Users/emiliegronsberg/Downloads/android-sdk-macosx/tools/ant/build.xml:283: null returned: 1
    
    Total time: 5 seconds
    Building the android package failed!
      -- For more information, run this command with --verbose.
    23:27:58: The process "/Users/emiliegronsberg/V-PlaySDK/5.6/android_armv7/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project FlappyBird (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.6.0))
    When executing step "Build Android APK"
    23:27:58: Elapsed time: 00:38.
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.