如何在 Android Studio 中查看 gradle 版本? [英] How to check the gradle version in Android Studio?

查看:22
本文介绍了如何在 Android Studio 中查看 gradle 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Android Studio 0.82 编译 this 官方项目时,显示错误提示:

When compiling this official project with Android Studio 0.82, it shows error note:

Error:The project is using an unsupported version of the Android Gradle plug-in (0.9.2)

经过一番搜索,我决定手动更改build.gradle文件中的内容

After some searching, I decide to manually change content in the build.gradle file in line

classpath 'com.android.tools.build:gradle:0.9.+'

到 Android Studio 中安装的 gradle 版本.

to the gradle version that is installed in Android Studio.

问题是,如何在我的 Android Studio 中查看 gradle 版本?

The question is, can how to check the gradle version in my Android Studio?

推荐答案

文件->项目结构->项目窗格->Android插件版本".

File->Project Structure->Project pane->"Android plugin version".

确保不要将 Gradle 版本与 Android 插件版本混淆.前者是构建系统本身,后者是构建系统的插件,知道如何构建 Android 项目

Make sure you don't confuse the Gradle version with the Android plugin version. The former is the build system itself, the latter is the plugin to the build system that knows how to build Android projects

这篇关于如何在 Android Studio 中查看 gradle 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆