Maui安卓调试时部署报错:ADB1000
突发情况,于是重新建了个项目,什么都没动的直接选择安卓仿真器。点击部署。于是等了半天,打开仿真器变慢了。部署也变慢了,CPU直接嗷嗷响,温度瞬间直飙80多度。接着仿真器是打开了,但一直都是黑屏。
然后就是一个报错。
报错内容 :
错误 ADB1000: System.IO.FileNotFoundException: 未能找到文件“E:\VSproject\MauiApp3\MauiApp3\bin\Debug\net6.0-android\com.companyname.mauiapp3-Signed.apk”。 文件名:“E:\VSproject\MauiApp3\MauiApp3\bin\Debug\net6.0-android\com.companyname.mauiapp3-Signed.apk” 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) ......
ANDAS0000: WARNING: All illegal access operations will be denied in a future release 0
ANDAS0000: WARNING: Illegal reflective access by com.xxx.xxx.xxxx.xxx (file:C:/Program Files (x86)/xxx/xxx/xxx/xxxx/xxxx.jar) to field sun.instrument.InstrumentationImpl.mNativeAgent 0
ANDAS0000: WARNING: An illegal reflective access operation has occurred 0
......
内容太多,直接省略掉
主要情况:
报错:ADB1000
发生的状况:
部署报错
仿真器黑屏
查看\Debug\XXX-Android目录,没有生成xxx-signed.apk。只生成了一个XXX.apk
解决方法:
关掉杀毒软件
故甚爱必大费,多藏必厚亡。知足不辱,知止不殆,可以长入。