journey
V2EX  ›  Android

Android Studio3.1 编辑 build.gradle 文件卡到爆炸💥

  •  
  •   journey · Mar 30, 2018 · 17273 views
    This topic created in 3146 days ago, the information mentioned may be changed or developed.
    一字一卡,删除一个字符要等 5 秒
    Supplement 1  ·  Apr 24, 2018

    今天更新的3.1.2 已经将此问题修复 https://developer.android.com/studio/releases/index.html

    3.1.2 (April 2018)

    This update to Android Studio 3.1 includes fixes for the following bugs:

    ...

    During editing of the build.gradle file, there was sometimes a noticeable delay between typing a character and the character appearing on the screen.

    ...

    31 replies  •  2018-04-24 10:53:36 +08:00
    suntoryliqu
    suntoryliqu
    Mar 30, 2018
    1
    是啊
    noahhhh
    noahhhh
    Mar 30, 2018 via Android
    2
    这是 beta 版的?
    Arthur5
    Arthur5
    Mar 30, 2018 via Android
    3
    以前升级也遇到过,把 plugins 中的 Google 开头的插件全打开就行了。
    300
    300
    Mar 30, 2018 via Android
    4
    开 power save mode 应付一下,老版本也会这样
    honeycomb
    honeycomb
    Mar 30, 2018 via Android
    5
    提 issue ?
    HangoX
    HangoX
    Mar 30, 2018 via Android
    6
    原来我不是一个人。。
    XinLake
    XinLake
    Mar 30, 2018
    7
    我也看到 3.1 更新了,工程较大用着 3.0.1 还没更新,有那些变化
    winglight2016
    winglight2016
    Mar 30, 2018
    8
    我这里非常流畅,特别是 gradle build run 比之前提升了五倍的速度,前两天 build 需要 10 多秒时间,现在大约 2-3 秒,连 install apk 的速度都变快连
    lovefantasy
    lovefantasy
    Mar 30, 2018 via Android
    9
    之前版本也是吧
    GavinHua
    GavinHua
    Mar 30, 2018
    10
    网络问题,search.maven.org ,
    tobepro
    tobepro
    Mar 30, 2018
    11
    把 auto import 关了把,手动刷新 build.gradle
    journey
    journey
    OP
    Mar 30, 2018
    12
    @Arthur5 #3 无效,已经全部打开了
    @winterbells #4 有效, power save mode 不卡了
    @tobepro #11 无效,关闭 auto import 照样卡
    感谢诸位
    MarcoM
    MarcoM
    Mar 30, 2018
    13
    我还在 3.0.1。还有就是 Compile 改成 impli 什么东西
    hqdmy
    hqdmy
    Mar 30, 2018
    14
    木有啊...
    XinLake
    XinLake
    Mar 30, 2018
    15
    手贱点了下升级,下了 400M+ 补丁,升完真实这样。
    随便编辑一个 module 的 build.gradle 卡 5 秒,按个注释 // 都卡。

    @MarcoM
    这个从 2.2 版本升级到 3.0 版本就改了( 3.1 当然也还是这样)。
    参考:
    The plugin exposes two configurations that can be used to declare dependencies: api and implementation. The api configuration should be used to declare dependencies which are exported by the library API, whereas the implementation configuration should be used to declare dependencies which are internal to the component.
    (翻译)插件公开了两种可用于声明依赖项的配置: “ api ” 和 “ implementation ”。” api ” 配置应当用于声明由库 API 导出的依赖项, 而 “ implementation ” 配置应当用于声明组件内部的依赖项。

    https://xinlake.github.io/2017-12/android-studio-3-changes/
    deepkolos
    deepkolos
    Mar 30, 2018 via Android
    16
    同 build 煎鸡蛋,不过终于修复了输入法的问题
    immafrady
    immafrady
    Mar 30, 2018
    17
    build 过之后,启动的速度快了很多。。。

    但是……

    这简直没卵用……

    因为我修改过的代码压根就没应用上去……

    重装过两次,还是这样,等下一个版本再升级吧。。
    z42514
    z42514
    Mar 30, 2018
    18
    @immafrady 我刚升级的时候和你的情况一样,后来把配置文件全部删除,就可以了。不过缺点就是等于像新系统第一次安装一样,要重新配置一遍
    ezXE2V
    ezXE2V
    Mar 30, 2018 via Android
    19
    导入的非 gradle 工程还会无限 updating indices
    shlyren
    shlyren
    Mar 30, 2018 via iPhone
    20
    Shide
    qmsggg
    qmsggg
    Mar 30, 2018
    21
    速度可是真快你们
    DeweyReed
    DeweyReed
    Mar 30, 2018
    22
    你们一说好像确实也是啊,我还以为是自己的 build.gradle 修改的内容太多了才卡。。不过 build 快了不是一点点。
    AndroidStudio 一更新就会有坑。谁还记得 2.3 时 InstantRun 的 Bug。大家都是小白鼠..
    lee015
    lee015
    Mar 30, 2018
    23
    @immafrady 我刚升级后也是,直接安装旧版的 apk,修改不生效,还老 IDE 内部错误。后来把项目 git 库重新拉一个打开就好了,可能旧版残留了什么配置。
    dyy1997
    dyy1997
    Apr 9, 2018
    24
    我是写着写着就卡爆了。。。自己笔记本和公司台式机都这样,可能配置真的跟不上了
    wwqgtxx
    wwqgtxx
    Apr 10, 2018
    25
    然后升级到 3.1.1 就好了
    journey
    journey
    OP
    Apr 10, 2018
    26
    @wwqgtxx #25 今天我也升级了,没有用,依旧一字一卡
    forreal
    forreal
    Apr 11, 2018
    27
    @wwqgtxx 我也升到 3.1.1 了,还是卡。是不是还要做别的什么配置?求教。
    mqxin
    mqxin
    Apr 11, 2018❤️1
    28
    转载一个方法,试了确实有一些效果
    在 host 中添加 127.0.0.1 search.maven.org
    https://blog.csdn.net/wangluotianxi/article/details/79757558
    forreal
    forreal
    Apr 11, 2018
    29
    @mqxin 试了,好用,感谢
    forreal
    forreal
    Apr 11, 2018
    30
    @mqxin 好像又不好用了
    wwqgtxx
    wwqgtxx
    Apr 24, 2018
    31
    @forreal 3.1.2 官方确定修了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4530 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 68ms · UTC 03:39 · PVG 11:39 · LAX 19:39 · JFK 22:39
    ♥ Do have faith in what you're doing.