android studio中的“应用更改"按钮已禁用(灰色) [英] Apply changes button in android studio is disabled(gray color)
问题描述
我将项目的minSdkVersion设置为19并启用Instant Run.
我已经在运行于API 21的设备中部署了该应用程序,但是应用更改"按钮显示为灰色.当我将鼠标悬停在该按钮上时,它显示为"No Active 'App' launch"
,尽管当时我正在设备中运行该应用程序.
I have set up my project's minSdkVersion as 19 and enabled Instant Run .
I have deployed the app in my device running on API 21 But the "Apply Changes" button is grayed out.When I hover over the button it says "No Active 'App' launch"
although I am running the app in my device at that time .
android studio版本:2.3
android studio version : 2.3
gradle版本gradle:3.3
gradle version gradle : 3.3
推荐答案
启用应用更改"选项的步骤
Steps to enable Apply changes option
步骤1:从以下位置启用即时运行 Android Studio->首选项->构建,执行和部署->启用即时运行->应用->确定.
Step 1: Enable Instant run from Android Studio -> Preferences -> Build,Execution and Deployment ->Enable Instant Run -> Apply -> Ok.
第2步:检查minSdkversion应该比该版本和gradle版本大21.
Step 2: Check your minSdkversion should be 21 greater than that and gradle version.
第3步:启动您的应用程序,它将启用应用更改"图标/选项. :)
Step 3: Launch your application and it will enable apply changes icon/ option. :)
这篇关于android studio中的“应用更改"按钮已禁用(灰色)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!