Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had to edit the <em>gradle wrapper settings</em> in <code>gradle/wrapper/gradle-wrapper.properties</code> and change <code>gradle</code> version to 1.9.</p> <p><strong>./gradle/wrapper/gradle-wrapper.properties :</strong></p> <pre><code>#Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip </code></pre> <p>I had to change <em>gradle-1.6-bin.zip</em> to <em>gradle-1.9-all.zip</em>. I guess the old ADT plugin from eclipse which generates this file still uses the old URL.</p> <p>Then I had to create a <em>local.properties</em> in <em>project root</em> and set correct SDK dir in it. </p> <p><strong>./local.properties</strong></p> <pre><code>sdk.dir=/home/user/pathtosdk </code></pre> <p>Did that and imported using <em>default gradle wrapper</em> and voila! The project imported without any problem.</p> <p>Notes: This also fixes the issue with <em>org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'services.gradle.org/distributions/gradle-1.6-bin.zip';.: Could not execute build using Gradle distribution 'services.gradle.org/distributions/gradle-1.6-bin.zip';</em> You must also make sure that in the file <em>./build.gradle</em>, <code>com.android.tools.build:gradle:0.5.+</code> should be changed to <code>com.android.tools.build:gradle:0.7.+</code>.</p> <p>If you are still experiencing problems with import, open up the project root in command line and run <code>./gradlew</code> or <code>gradlew.bat</code> according to your os. You'll be getting errors with more debug info and maybe tips on how to solve them.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload