Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.

Original text: http://blog.csdn.net/u014544193/article/details/50947718
android studio clicks instant run, and the following prompt appears.



Solution 1:
Check the first option in the picture below.



Solution 2:
Don't do it like the first method, but directly click the enable ADB integration in the figure below.



Personal understanding:

In fact, as the question prompts, it already tells you that the solution is the second method.
The first method is less desirable. You can see why from the description of its options. Because hot swap is a way of instant
run. With this option checked, when your app is running, if you change the app's code, you don't need to reinitialize the object, just re-enter the activity or restart the app to see your update. After performing a hot swap, android studio will automatically restart the current activity.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326664889&siteId=291194637