日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

AndroidStudio部署项目时出现错误:Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled

發布時間:2024/9/30 Android 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 AndroidStudio部署项目时出现错误:Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

結果在部署項目到模擬器的時候出現了錯誤: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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。