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