转载:http://blog.csdn.net/zhuwentao2150/article/details/51104843
--------------------------------------------------------------------------------------
今天更新了Android Studio,结果在部署项目到模拟器的时候出现了错误:Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled
原因
这个是由于Android Studio2.0新版本中的Instant Run (即时运行)引起的,什么是即时运行呢?
Instant Run in Android Studio 2.0 allows you to quickly make changes to your app code while your app is running on an Android device or Android Emulator. Instead of waiting for your entire app to rebuild and redeploy after each code change, Android Studio 2.0 will try to incrementally build and push only the incremental code or resource change. Depending on the code changes you make, you can see the results of your change in under a second. By simply updating your app to use the latest Gradle plugin ( '
com.android.tools.build:gradle:2.0.0-beta2
’ ), you can take advantage of this time saving features with no other modifications to your code.
它可以快速的更改运行在Android虚拟机中的APP,也就是说在Android虚拟机中的app还在运行的时候,就可以直接改变它的内部代码
开发者可以不用再等待整个应用程序重建以及每次代码更改后重新部署
简单来说就是改了代码后,点击即时运行,模拟器上的应用不需要重启就可以直接呈现出我们修改后的代码效果!
有关即时运行的google官方文档:
http://tools.android.com/tech-docs/instant-run
解决方法
点击工具栏中的Tools,选中Android,最后点击Enable ADB Integration,使其前面出现✔号就OK了
相关推荐
adb错误解决方法
mac android studio 更新到最新版本引起的... 这个异常信息是由于Lombok 插件版本与Android Studio的版本不匹配引起的, 会导致使用Lombok相关注解中getter/setter 方法报错(IED级别) , 单不会影响实际项目部署运行
MySql5.7.20安装过程中报错 This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again. 的解决办法.报错如下: 1: Action 10:59:21: ...
关于Android Studio升级为V4.1.1Activity不能创建解决方法
based backend, Create media-related apps that will run on phones, phablets, tablets, and TVs, In Detail, This book starts with an introduction of Android Studio and why you should use this IDE rather ...
Design, test, and debug your apps using Android Studio About This Book See what Material design is about and how to apply it your apps Explore the possibilities to develop apps that works on any type...
主要介绍了VirtualBox 错误:This kernel requires the following features not present on the CPU的相关资料,希望通过本文能帮助到大家,解决这样的问题,需要的朋友可以参考下
emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!
解决adb传输中文出现乱码的最新版adb.exe文件
安装 mysql5.7时提示:This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again. 需要安装指定版本的Microsoft Visual C++ ...
Unknown column 'fillMen' in 'field list' java.sql.SQLException: Operation not ...java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection should be passed in
NULL 博文链接:https://zzc1684.iteye.com/blog/2237179
It doesn't use dagger // mvp // mvvp or any other stuff that requires an more in depth knowledge of android. How to use it: Step 1: Fork/Clone this repo. Add a local.properties with your sdk ...
numpy+matplotlib+scipy+部分问题的解决方法; 错误:six 1.3 or later is required; you have 1.2.0; 错误:ImportError: matplotlib requires pyparsing; 安装dateutil :
This extension requires one license per seat Requires Unity 4.5.0 or higher. Shader Forge v1.36 Links: Website | Forum thread | Nodes | FAQ 简体字 | 正體字 Note: Unity 4 support dropped after v1.06 ...
换一个windows服务器,发现就没这样的问题,仅在一台Linux服务器上可以重现,直观感觉就是这台Linux服务器某些配置有问题
统计Android Studio项目行数的插件,国内一般访问不了官网,下载不了,我就把它放在这里,方便有需要的人 This plugin shows files sorted by their extension along with size, line count LOC etc. User can ...
今天小编就为大家分享一篇关于Studio编译报错:compileSdkVersion 'android-24' requires JDK 1.8 or later to compile.的解决办法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随...
vcredist MySql 安装报错 错误信息:This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again 下载文件,安装64位,不行再安装32位