问题描述
所以我试图在Ubuntu 14.04 LTS中使用Android Studio 2.2 Preview-1.
So i'm trying to use Android Studio 2.2 preview-1 in Ubuntu 14.04 LTS.
我正在使用 gradle-2.10 和 gradle-plugin 2.2.0-alpha1 以及 openJDK-8 .
compileSdkVersion 23
buildToolsVersion "23.0.3"
首先, studio.sh 没有运行,我找到了将#!/bin/sh
更改为#!/bin/bash
的解决方案.瞧-它正常启动.
First the studio.sh didn't run and i found the solution to change #!/bin/sh
to #!/bin/bash
. Voila --it starts properly.
但是在 build.gradle 文件中,显示警告-
But in build.gradle files, warning is shown--
'dependencies' cannot be applied to '(groovy.lang.Closure)'
并且它没有从库项目中找到导入的类(仅包括一个jar).请有人帮我.
and its not finding imported class from library project(includes a jar only).Please someone help me out.
推荐答案
我为此找到的唯一解决方法是,每次打开项目时,都转到设置">构建,执行,部署">"Gradle",更改为使用本地gradle分发",单击应用",然后单击使用默认的gradle包装器",然后单击确定.
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.
这篇关于Android Studio 2.2 Preview1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!