Bogdan: While I cannot reproduce it reliably, sometimes the Qt "Copy Files to Gradle" will 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. I will submit a bug on Qt Bug Tracker as you have requested. Cheers, md On Mon, Jan 4, 2016 at 6:41 AM, BogDan <bog_dan...@yahoo.com> wrote: > Hi, > > QtCreator should replace "distributionUrl" for you. Please use > https://bugreports.qt.io to open a bug report. > > Cheers, > BogDan. > > > On Monday, January 4, 2016 2:30 PM, mark diener <rpzrpz...@gmail.com> wrote: > > > After getting more problems like the one below: > > Failed to sync Gradle project 'android' > Error:Unable to load class > 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'. > Possible causes for this unexpected error include:<ul><li>Gradle's > dependency cache may be corrupt (this sometimes occurs after a network > connection timeout.) > <a href="syncProject">Re-download dependencies and sync project > (requires network)</a></li><li>The state of a Gradle build process > (daemon) may be corrupt. Stopping all Gradle daemons may solve this > problem. > <a href="stopGradleDaemons">Stop Gradle build processes (requires > restart)</a></li><li>Your project may be using a third-party plugin > which is not compatible with the other plugins in the project or the > version of Gradle requested by the project.</li></ul>In the case of > corrupt Gradle processes, you can also try closing the IDE and then > killing all Java processes. > > I created another fresh project, verified it ran on Android Table. > > Then added line to gradle-wrapper.properties: > > distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip > > And commented out the 1.12 line. > > I focused entirely on clearing out old gradle stuff from my entire > machine (OSX El Capitan, Qt 5.5.1) > > Android Studio is now working with Qt 5.5.1 again. > > So the lesson of the day is that as Android Studio updates from 1.4.1 > -> 1.5.1, etc, you really need to go back and remove all legacy Gradle > stuff from your entire machine since Gradle gets confused. And there > seem to be several places that leave Android Studio and Gradle garbage > on OSX. > > When you first create QT projects, it may be with older gradle, then > upgrading Android studio may cause new gradle to download, but Qt and > Android studio both need entirely fresh gradle stuff or you start to > get hours of the above problems. > > Hope that helps anyone. > > > Cheers, > > md > > _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest