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

2018-03-30 11:54:04 +08:00
 journey
一字一卡,删除一个字符要等 5 秒
7877 次点击
所在节点    Android
31 条回复
tuimaochang
2018-03-30 11:57:44 +08:00
是啊
noahhhh
2018-03-30 12:05:53 +08:00
这是 beta 版的?
Arthur5
2018-03-30 12:35:40 +08:00
以前升级也遇到过,把 plugins 中的 Google 开头的插件全打开就行了。
winterbells
2018-03-30 12:39:25 +08:00
开 power save mode 应付一下,老版本也会这样
honeycomb
2018-03-30 13:05:26 +08:00
提 issue ?
HangoX
2018-03-30 13:12:20 +08:00
原来我不是一个人。。
XinLake
2018-03-30 13:15:22 +08:00
我也看到 3.1 更新了,工程较大用着 3.0.1 还没更新,有那些变化
winglight2016
2018-03-30 13:18:30 +08:00
我这里非常流畅,特别是 gradle build run 比之前提升了五倍的速度,前两天 build 需要 10 多秒时间,现在大约 2-3 秒,连 install apk 的速度都变快连
lovefantasy
2018-03-30 13:19:02 +08:00
之前版本也是吧
GavinHua
2018-03-30 13:21:49 +08:00
网络问题,search.maven.org
tobepro
2018-03-30 13:54:14 +08:00
把 auto import 关了把,手动刷新 build.gradle
journey
2018-03-30 15:22:39 +08:00
@Arthur5 #3 无效,已经全部打开了
@winterbells #4 有效, power save mode 不卡了
@tobepro #11 无效,关闭 auto import 照样卡
感谢诸位
MarcoM
2018-03-30 15:26:35 +08:00
我还在 3.0.1。还有就是 Compile 改成 impli 什么东西
hqdmy
2018-03-30 15:32:36 +08:00
木有啊...
XinLake
2018-03-30 16:40:38 +08:00
手贱点了下升级,下了 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
2018-03-30 17:17:00 +08:00
同 build 煎鸡蛋,不过终于修复了输入法的问题
immafrady
2018-03-30 17:25:58 +08:00
build 过之后,启动的速度快了很多。。。

但是……

这简直没卵用……

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

重装过两次,还是这样,等下一个版本再升级吧。。
z42514
2018-03-30 19:06:02 +08:00
@immafrady 我刚升级的时候和你的情况一样,后来把配置文件全部删除,就可以了。不过缺点就是等于像新系统第一次安装一样,要重新配置一遍
EthanZhuXE2V
2018-03-30 19:06:21 +08:00
导入的非 gradle 工程还会无限 updating indices
shlyren
2018-03-30 19:41:23 +08:00
Shide

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/442795

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX