久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

gradle 版本和 gradle build tool 版本的關系

relation between gradle version and gradle build tool version(gradle 版本和 gradle build tool 版本的關系)
本文介紹了gradle 版本和 gradle build tool 版本的關系的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我是 gradle 新手,有 2 個問題:

I'm new to gradle and got 2 questions:

  1. gradle本身就是一個構建工具,那為什么腳本中需要Android gradle工具com.android.tools.build:gradle:0.7.+呢?

安裝的 gradle 的版本(比如 1.9)和那個 Android gradle 工具的版本之間有什么關系,比如 classpath 'com.android. 中的 0.7.+.tools.build:gradle:0.7.+'.如果我將后者的版本更改為 0.8.+,則構建會因找不到插件 AppPlugin"而失敗.

What is the relation between the version of gradle installed (say 1.9) and the version of that Android gradle tool, like 0.7.+ in classpath 'com.android.tools.build:gradle:0.7.+'. If I changed the latter's version to 0.8.+ then the build fails on 'could not find plugin AppPlugin'.

推薦答案

我會盡量回答你的問題.

I will try to answer your questions.

  1. 正如您所說,Gradle 是一個構建工具,但是您在第一個問題中提到的那一行是指 Gradle Java 插件版本.Gradle 有用于構建 Java 項目的插件.這些插件在通用構建工具 Gradle 的基礎上擴展,并且可能提供附加功能.您可以在這里閱讀更多關于 Gradle 插件的信息.

  1. As you said, Gradle is a build tool, but the line you have mentioned in your first question is referring to Gradle Java plugin version. Gradle has plugin for building Java projects. These plugins extend upon the general purpose build tool Gradle is, and may provide additional features. You can read more about the Gradle plugins here.

更改插件版本時構建失敗的原因很簡單,插件版本 0.8 不存在.Gradle 版本和插件版本之間存在關系,開發人員必須維護它.您只能使用已發布且與 Gradle 版本兼容的插件版本.我希望第一個問題的答案無論如何都能回答這個問題.

The reason your build fails when you change the plugin version is simple, the plugin version 0.8 is not there. There is a relationship between Gradle version and the plugin version and a developer has to maintain that. You can only use a plugin version which has been released and is compatible with the Gradle version. I hope the answer to first question answers this anyways.

這篇關于gradle 版本和 gradle build tool 版本的關系的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 第一福利视频 | 一区二区三区四区视频 | 国产三级一区 | 五月天激情影院 | 激情综合婷婷 | 成年网站在线观看 | 综合久久99| 国产不卡视频 | 夜夜精品视频 | 欧美在线视频一区二区 | 亚洲综合成人网 | 亚洲免费成人 | 亚洲我射av| 欧美另类激情 | 欧美黑人一区二区三区 | 亚洲一级精品 | 精品免费视频 | 99色在线 | 亚洲精品日韩丝袜精品 | 综合久久久久 | 久久综合五月天 | 日本黄a三级三级三级 | 亚洲一区在线看 | 三级在线视频 | 91欧美激情一区二区三区成人 | 一区二区三区在线观看免费 | 一区二区三区视频在线 | 国产在线www| 成年人免费看视频 | 激情小说在线视频 | 日韩精品黄 | www.九九热 | 国产一级18片视频 | 999在线视频 | 成人激情综合网 | 亚洲啪啪网| 亚洲字幕 | av一二三区 | 午夜精品在线观看 | 一级黄色录像片 | 欧美国产在线观看 |