Android的Studio不与2.10的gradle的gradle和插件2.0.0-素α5做工精细 [英] Android Studio doesn't work fine with gradle 2.10 and gradle plugin 2.0.0-alpha5
问题描述
我用com.android.tools.build:gradle:2.0.0-alpha3和2.8的gradle之前,我更新到Android 2.0工作室preVIEW 5。
它工作正常。
I use com.android.tools.build:gradle:2.0.0-alpha3 and gradle 2.8 before I update to Android Studio 2.0 preview 5. It works fine.
在我更新到2.0 preVIEW 5,它告诉我升级到com.android.tools.build:gradle:2.0.0-alpha5和2.10的gradle
After I update to 2.0 preview 5,it tells me to update to com.android.tools.build:gradle:2.0.0-alpha5 and gradle 2.10.
我不能建立并正常运行,现在我的应用程序。它总是使用我的code的旧副本,虽然我已经改变了code和花费更多的时间来建立。
I can't build and run my app normally now. It always uses a old copy of my code though I have changed the code and costs more time to build.
如果我回头com.android.tools.build:gradle:2.0.0-alpha3和gradle这个2.8.It成为权利。
If I turn back to com.android.tools.build:gradle:2.0.0-alpha3 and gradle 2.8.It become right.
Android的Studio版本( http://tools.android.com/recent )
Android Studio Version (http://tools.android.com/recent)
Android的摇篮插件版本(<一个href=\"http://tools.android.com/tech-docs/new-build-system\">http://tools.android.com/tech-docs/new-build-system)
Android Gradle Plugin Version (http://tools.android.com/tech-docs/new-build-system)
Android的工作室preVIEW 6被张贴在2016年1月21日。
Android的工作室preVIEW 7被张贴在2016年1月23日。
Android Studio Preview 6 was posted on Jan 21, 2016. Android Studio Preview 7 was posted on Jan 23, 2016.
您可以看到,Android的工作室preVIEW更新frequently.If你不希望处理所有类型的bug,你最好使用一个稳定的版本。
You can see that the Android Studio Preview updates frequently.If you don't want to deal all kinds of bugs,you would better to use a stable version.
如果你想使用更多的功能,你应该始终保持最新的版本,以避免错误。
If you want to use more features, you should always keep latest version to avoid bugs.
推荐答案
您的问题是与即时运行,因为它的项目建造和安装APK,它不能摇篮问题。
Your problem is with instant run, because it project builds and APK installs, it can't be Gradle issue.
即时运行仍处于开发阶段,并没有正常工作的这个问题。
Instant Run is still under development and has this issue of not working properly.
要禁用即时运行:
- 开启性能,
- 转至编辑>构建,执行,开发>即时运行
- 取消选中启用即时运行到热插拔code
- open properties,
- go to Editor > Build, Execution, Development > Instant Run,
- uncheck Enable instant Run to hotswap code
这篇关于Android的Studio不与2.10的gradle的gradle和插件2.0.0-素α5做工精细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!