[Interest] Android Studio 1.5.1 with Qt 5.5.1 OSX

mark diener rpzrpzrpz at gmail.com
Mon Jan 4 13:30:59 CET 2016


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



More information about the Interest mailing list