Android Studio 首次运行的一些设置

1,首次启动遇到Fetching Adnroid SDK component information卡住或者更新卡住过不去的,因为Google被墙的原因; 在Android Studio安装目录下的 bin 目录下,找到 idea.properties 文件,在文件最后追加disable.android.first.run=true

2,显示行号:Editor/Gengral/Appearance/Show line numbers;

3,编译后安装的APP短暂白屏,这有由于Instant Run(即时运行)导致,建议关闭

Settings→Build→Instant Run:
a:Enable Instant Run to hot swap code/resource changes on deploy (default enabled)
//启用即时运行 热交换代码/资源变化 部署(默认启用)
b:Restart activity on code changes 
//当代码变动时重启
c:Show toasts in the running app when changes are applied
//当代码变动应用时弹出toast
d:show Instant Run status notifications

4,Android Studio 启动选择项目 打开settings对话框,执行“File”-“Settings”,在Settings对话框的左侧,找到“Appearance & Behavior" - "System Settings",在右侧找到”Reopen last project on startup“,取消选中。

转载于:https://my.oschina.net/hkceey/blog/755383

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值