每次看到Android Studio 3.1重建项目时都会看到更改 [英] Android studio 3.1 rebuild project each time to see the changes

查看:108
本文介绍了每次看到Android Studio 3.1重建项目时都会看到更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的android studio更新到版本3.1之后,我遇到的问题是:

当我对代码进行一些更改时,然后启动执行,得到旧的代码执行,直到重新生成项目或清理并重试为止. 那是问题吗 ?

PS:这是我的旧项目发生的,我还没有尝试过新的项目

解决方案

我认为您正在android studio中遇到BUG,这是Google通过Twitter宣布的.

我引用了他们的3条推文:

我们发现了一个错误,该错误会影响一些用户从AS3.0升级:运行或调试应用程序时,源文件可能不会自动重建.请在运行配置"中的启动前步骤中添加具有Gradle意识的品牌",或在下周初等待AS3.1.1修复程序[1/3]

大约在发布之时,jCenter(托管Android开发人员使用的许多库的第3方存储库)也遭受了停机的困扰(有关更多信息,请参见 https://twitter.com/androidstudio/status/981914636739076097

After updating my android studio to version 3.1,I have a problem which is :

When I make some changes on my code , then I launch the execution , I get the old execution of code , until I'll rebuild the project or clean it and try again is that a problem ?

PS : this happened with my old projects , i did not tried yet with new projects

解决方案

I think you’re facing a BUG in android studio, as declared by google via Twitter.

I quote their 3 tweets:

We've identified an error that affects some users upgrading from AS3.0: source files may not automatically rebuild when running or debugging an application. Please add 'Gradle aware make' to pre-launch steps in the Run Configuration or wait for AS3.1.1 hotfix early next week[1/3]

Also around the time of the release, jCenter (a 3rd party repository which hosts many of the libraries used by Android developers) suffered from an outage (read more on http://status.bintray.com/ ). This caused builds to fail and was an unfortunate coincidence. [2/3]

Even though this was something out of our control, we will try to come up with a way to mitigate this in the future. We apologize for any problems and ask all developers to test your projects on our weekly Canary (and soon Beta) versions of Android Studio and file bugs. [3/3]

Accompanied by their image:

source: https://twitter.com/androidstudio/status/981914636739076097

这篇关于每次看到Android Studio 3.1重建项目时都会看到更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆