Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.2 preview1 errors

So i'm trying to use Android Studio 2.2 preview-1 in Ubuntu 14.04 LTS.

I'm using gradle-2.10 and gradle-plugin 2.2.0-alpha1 along with openJDK-8.

compileSdkVersion 23
buildToolsVersion "23.0.3"

First the studio.sh didn't run and i found the solution to change #!/bin/sh to #!/bin/bash. Voila --it starts properly.

But in build.gradle files, warning is shown--

'dependencies' cannot be applied to '(groovy.lang.Closure)'

and its not finding imported class from library project(includes a jar only). Please someone help me out.

like image 494
Arnav M. Avatar asked Oct 31 '22 03:10

Arnav M.


1 Answers

The only fix that I found for this is, every time I open a project, I go to Settings>Build, Execution, Deployment>Gradle, change to "use local gradle distribution", click apply then click "use default gradle wrapper" and ok.

This should fix, but its quite annoying to do this everytime.

like image 196
Luccas Clezar Avatar answered Nov 11 '22 11:11

Luccas Clezar