android run as 出现 .. 的各种问题

本文提供了解决Android开发过程中遇到的ADB服务无法启动问题的多种方法,包括在cmd中使用adbkill-server命令,通过任务管理器关闭adb.exe进程,检查并修复相关路径中的adb.exe文件,以及排查是否被其他软件占用ADB服务等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错如下:


The connection to adb is down, and a severe error has occured.
[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.
[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'E:\Android\android-sdk\platform-tools\adb.exe' and can be executed.
解决:
方法1.cmd中adb kill-server,然后adb -startserver
方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。
方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

4.前面是别人总结的方法,我自己碰到的一种情况是“豌豆荚”或“手机助手”类的软件占用了adb,在任务管理器中停止“豌豆荚”及adb后重启adb或eclipse即可。




“android中ADB server didn't ACK * failed to start daemon 或者找不到sdk的路径 或者 adb server is out of date
网上很多说法都是在任务管理器中关闭adb.exe的进程,关闭Eclipse ,然后都重新启动,最让人郁闷的是任务管理器根本就找不到adb.exe,后来折腾了好久才找到原因,是因为豌豆荚的原因,只要关闭所有豌豆荚的进程,然后在cmd中进入platform-tool路径下  输入 adb kill-server 这是adb就开始重新启动了在Eclipse的control 界面可以看到  attempt connection.....1..2...3.........11

网上资料,转载别人的,非本人总结,如有涉及到知识产权请通知本人删除。


java.lang.ExceptionInInitializerError at t1.X.c(SourceFile:1) at androidx.window.layout.WindowInfoTrackerImpl.windowLayoutInfo(SourceFile:1) at androidx.window.java.layout.WindowInfoTrackerCallbackAdapter.addWindowLayoutInfoListener(SourceFile:1) at io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper.addWindowLayoutInfoListener(Unknown Source:2) at io.flutter.embedding.android.FlutterView.onAttachedToWindow(Unknown Source:33) at android.view.View.dispatchAttachedToWindow(View.java:23282) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3542) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3549) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3549) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3549) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4123) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:3547) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:11575) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1747) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1756) at android.view.Choreographer.doCallbacks(Choreographer.java:1270) at android.view.Choreographer.doFrame(Choreographer.java:1173) at android.view.Choreographer$FrameHandler.handleMessage(Choreographer.java:1583) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:249) at android.os.Looper.loop(Looper.java:337) at android.app.ActivityThread.main(ActivityThread.java:9604) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) Caused by: java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core' at y1.v.d(SourceFile:5) at y1.v.a(SourceFile:4) at y1.v.b(SourceFile:12) at y1.u.a(SourceFile:89) at y1.u.<clinit>(SourceFile:14) ... 25 more用中文解析这个报错
最新发布
07-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值