[Interest] [qt-android] failed to build project with gradle

Liang Jian jianliang79 at gmail.com
Sun Dec 28 03:20:57 CET 2014


    I have heard about that building android project with gradle is faster
than ant, today I tried to build my project with gradle but failed with the
following output message:

FAILURE: Build failed with an exception.


* Where:

Build file
'D:\test_proj\build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug\android-build\build.gradle'
line: 11


* What went wrong:

A problem occurred evaluating root project 'android-build'.

> Failed to apply plugin [id 'android']

> Gradle version 1.10 is required. Current version is 2.2.1. If using the
gradle wrapper, try editing the distributionUrl in
D:\test_proj\build-testAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug\android-build\gradle\wrapper\gradle-wrapper.properties
to gradle-1.10-all.zip


* Try:


Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.

BUILD FAILED


    I use Qt-5.4.0 and qtcreator 3.3.0, the latest android sdk and
android-ndk-r10d. It seems that the gradle version is wrong, but the gradle
is downloaded by qtcreator the first time I try to build with gradle. What
is wrong with me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141228/844661ee/attachment.html>


More information about the Interest mailing list