可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

I have updated android studio from 2.2 to 2.3,then I found Instant run not working.

Error while executing: am startservice com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService

Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService }

Error: Not found; no service started.

I also try reinstall android studio 2.3 but not work.

回答1:

In case you are running a device with MIUI, go to Developer Settings > Turn on MIUI optimization and turn it off.

You will then need to restart your device and recompile the code.

Instant Run should then work again

回答2:

Found a solution. You have to enable auto-start support for other device manufacturers (example ASUS, LeEco and some others).

For LeEco -

Install the app with Instant Run. It should fail (If it doesn't, why are you reading this in the first place?)

Go to Settings.

Look for Permissions under Personal.

Choose "You have allowed X apps to autolaunch". Toggle ON.

Done! Instant Run works.

For ASUS, give that app Auto-Start permission with Auto Start Manager. See here for more information.

For other devices, please find some similar setting.

EDIT -

If you have disabled auto-start in the Purify (or other similar app), please re-enable it.

Source - https://code.google.com/p/android/issues/detail?id=235879

回答3:

I was facing to the same issue too with an Asus phone.

Error while executing: am startservice com.eyelights.android/com.android.tools.fd.runtime.InstantRunService

Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.myapp.android/com.android.tools.fd.runtime.InstantRunService }

Error: Not found; no service started.

Thanks to this post, i was able to start my app again :

https://code.google.com/p/android/issues/detail?id=235879

Go in Android Studio Preferences :

Disable Instant Run like this :

Now you can run your app again. Don't forget to enable again Instant run when you switch phone.

It's not the perfect solution, but it's working

$ adb shell am start -n "com.myapp.android/com.myapp.android.activity.SplashScreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Connected to process 16367 on device asus-asus_z00ed-F9AZCY208273

回答4:

from 2.3 There is new icon.

see this.

回答5:

If you're using an Asus Zenfone, make sure that the Auto Start Manager doesn't block your app from running.

回答6:

Goto File-settings, "Build, Execution, Deployment"

click on instantRun

Uncheck Enable instant run Checkbox

then apply and ok will solve your problem

回答7:

disable instant run. This bug in issue tracker: https://code.google.com/p/android/issues/detail?id=235879

回答8:

Instant Run Documentation:

To start using Instant Run, you also need to change the build variant to a debug version of your app and deploy it to a target device running Android 5.0 (API level 21) or higher. To learn about more techniques that speed up your build, read Optimize Your Build Speed

so make sure your build variant is set to 'debug'.

回答9:

If you are using Genymotion with ARM Translation, you need to create a new image without it installed, and Instant Run will work fine.

回答10:

You need to update your gradle first then after instant run work..

To take advantage of all the latest features (such as Instant Run), improvements and security fixes, we strongly recommend that you update the Android Gradle plugin to version 2.3.0 and Gradle to version 3.3.

Thanks

回答11:

I had same problem by using Android Studio 2.3.2 and solved the issue by adding these codes in gradle file.

defaultConfig {

...

minSdkVersion 15

targetSdkVersion 25

...

// Enabling multidex support.

multiDexEnabled true

}

dependencies {

compile 'com.android.support:multidex:1.0.0'

}

android studio 2.3 instant run,android studio 2.3 instant run not working相关推荐

  1. Android学习总结(4)——Andorid Studio熟练使用

    前言 该文以Android Studio2.1.1(Bundle)为例.JDK使用的是1.8版本,也建议大家使用1.8版本. 使用技巧无先后顺序. Android Studio 2.1.1 软件下载 ...

  2. android 置灰不可点击,Android Studio 运行按钮灰色的完美解决方法

    Android Studio 运行按钮灰色的完美解决方法 今天新建项目的时候突然发现编译后运行按钮为灰色. 解决方案:第一步:点击图中的Add Configuration,出来如下界面 第二步:点+号 ...

  3. Android实战技巧之十一:Android Studio和Gradle

    2019独角兽企业重金招聘Python工程师标准>>> 经过两个多月的AS体验,我认为是时候将Android的开发环境迁移到AS上了.目前最新版本是1.0.2(大年30当天升级到1. ...

  4. android studio控件使用方法,android studio使用教程

    android studio使用教程 Android Studio是谷歌推出的一个Android集成开发工具,基于IntelliJ IDEA. 类似 Eclipse ADT,Android Studi ...

  5. Android 开发之Windows环境下Android Studio安装和使用教程(图文详细步骤)

    鉴于谷歌最新推出的Android Studio备受开发者的推崇,所以也跟着体验一下. 一.介绍Android Studio  Android Studio 是一个Android开发环境,基于Intel ...

  6. android 启动服务同时传递数据,Android Studio开发基础之起动Service,并通过从Activity向Service传递数据...

    Android Studio开发基础之启动Service,并通过从Activity向Service传递数据 本实例演示启动Service,并通过从Activity向Service传递数据,新建一个Se ...

  7. 让Android Studio 使用上vs的android模拟器

    1.在Android Studio中,点Run菜单,然后点Edit Configurations- 2.在Defaults/Android Application,设置Target Device to ...

  8. android studio进度条的应用,Android Studio实现进度条效果

    本文实例为大家分享了Android Studio实现进度条效果的具体代码,供大家参考,具体内容如下 实验作业 要求一个进度条,进度随机 效果图 xml代码 xmlns:app="http:/ ...

  9. 打开android模拟器但是as不识别,android studio连接雷电模拟器 【AS 模拟器】

    android studio 怎么连接安卓模拟器呢,跟着下面的步骤即可 (以雷电模拟器为例,其他模拟器类似) 一.下载模拟器 下载安装完雷电模拟器,打开并进入如下页面 二.模拟器进入开发者选项,勾选u ...

最新文章

  1. 硬核!我的导师手写129页毕业论文,堪比打印!
  2. 韩梦飞沙-屏幕录像专家 win10 含注册机
  3. php fopen插入文本_PHP 文件创建/写入
  4. Java笔记-使用System.gc()进行内存回收
  5. 26. Postpone variable definitions as long as possible
  6. HTML 拖放功能 - DragDrop
  7. c语言打印三角形//洛谷
  8. maven中resource配置详解
  9. Python 查看已安装的软件包及版本
  10. 面试官:怎么不用定时任务实现关闭订单?
  11. 球球大作战显示短信服务器出错,球球大作战常见问题汇总 新版本问题解决方法...
  12. 朱建辉php,“神采·朱建辉版画艺术展”在尼泊尔加德满都开幕
  13. linux mint安装成功
  14. CHAP MS-CHAPv2 EAP
  15. java 调用 mahout_(转)Mahout使用入门
  16. Matlab软件绘制图像线颜色(RGB)参数设置
  17. 行业渠道再洗牌,运营商或重掌行业话语权
  18. AD出现 “Net Tie failed verification”如何解决?
  19. Cart决策树算法原理学习
  20. 【React】redux和React-redux

热门文章

  1. hdu 4588 Count The Carries
  2. JavaScript 实现 GriwView 单列全选
  3. HTTP 和 HTTPS 协议
  4. 300+Jquery, CSS, MooTools 和 JS的导航菜单资源
  5. 操作系统 —— 磁盘
  6. 【计算机网络复习 物理层】2.1.5 编码与调制
  7. 仰望星空后,更将脚踏实地!
  8. js获取html样式属性,js怎么获取指定css属性的值?
  9. git撤销分支上代码的修改
  10. 用PyMC3进行贝叶斯统计分析(代码+实例)