Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 3.6.1
    • Qt Creator 3.5.1
    • Android Support
    • None
    • OSX El Capitan, Android SDK 19/21, NDK r10e

    Description

      Only observed this bug on OSX El Capitan with Qt 5.5.1 and Qt 5.6 beta.

      Created project are missing 2 things:

      1) Not automatically adding the line to gradle-wrapper.properties:

      distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip

      Must manually do it.

      2) Sometimes "Copy gradle files to android" does not create a gradle.properties file.

      That file contains:

      ## This file is automatically generated by QtCreator.
      #
      # This file must *NOT* be checked into Version Control Systems,
      # as it contains information specific to your local configuration.
      
      androidBuildToolsVersion=23.0.2
      androidCompileSdkVersion=21
      buildDir=.build
      qt5AndroidDir=/macdev/qt55/5.5/android_armv7/src/android/java
      

      Sometimes, you get this error:

      /macdev/qdev/legacy/testsplash/android/build.gradle
      Error:(37, 1) A problem occurred evaluating root project 'android'.
      > Could not find property 'androidCompileSdkVersion' on com.android.build.gradle.AppExtension_Decorated@4d128d7e.
      

      Attached 2 projects, testgradle to show correct construction of "Copy gradle files" with gradle.properties exists. testsplash that was auto-created without the gradle.properties file. You would think script files would auto-generate the gradle.properties file correctly, but that is not the case.

      Attachments

        1. testgradle.zip
          186 kB
        2. testsplash.zip
          63 kB
        For Gerrit Dashboard: QTCREATORBUG-15568
        # Subject Branch Project Status CR V

        Activity

          People

            taipan BogDan Vatra
            qtmarco mark diener
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes