Dannytmp
V2EX  ›  问与答

AS 两个脚本文件的 gradle 版本不一致,是什么意思?

  •  
  •   Dannytmp · Oct 24, 2017 · 1834 views
    This topic created in 3171 days ago, the information mentioned may be changed or developed.

    build.gradle(project xx) 里面是 2.3.3 gradle-wrapper.properties 里面是 3.3

    到底有效的是哪一个?

    3 replies    2017-10-24 16:10:02 +08:00
    LvWind
        1
    LvWind  
       Oct 24, 2017   ❤️ 1
    build.gradle 的 classpath 是 IDE 的插件,这版本通常和你的 AS 版本一致。
    gradle-wrapper.properties 里的是 gradle 发行版版本号。

    也就是说第一个是插件版本,第二个才是 gradle 版本
    DeweyReed
        2
    DeweyReed  
       Oct 24, 2017   ❤️ 1
    都有效,有不同的作用。都需要匹配准确的版本才可能 Build 成功。
    Dannytmp
        3
    Dannytmp  
    OP
       Oct 24, 2017
    @LvWind 原来如此,3q
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   914 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    ♥ Do have faith in what you're doing.