今天更新了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了

AndroidStudio部署项目时出现错误:Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled_第1张图片

更多相关文章

  1. Android源代码下载
  2. 2018-10-11【Android代码重构使用技巧】
  3. Android shell 创建 模拟器
  4. Android studio 删除无用代码
  5. Android Hawk数据库 github开源项目
  6. [置顶] android studio导入项目后出现cannot resolve symbol r a
  7. apk安装法之二----一段Android实现应用下载并自动安装apk包的代
  8. Android 通知的基本用法示例代码
  9. 比较实用的开源项目总结

随机推荐

  1. Android图片下载缓存库picasso解析
  2. Android开机自动启动app
  3. android加速度传感器Accelerometer
  4. 【Android】Mac系统Android开发环境搭建
  5. Eclipse开发Android应用程序入门
  6. Android(安卓)Contacts的使用(二)
  7. Android百分比布局初探
  8. 使用 Android(安卓)NDK 的一般方法:
  9. Android(安卓)DeepLink原理与应用(2)
  10. Android(安卓)NDK环境搭建(Windows环境)