英文:
MAUI Android tablet not detected, can't activate tethering
问题
我想在安卓设备上调试我的MAUI应用。
安卓API版本在允许的范围内。
我将设备连接到了使用Visual Studio的PC上。
已启用开发者选项。
已启用USB调试。
我转到"共享网络和移动热点"并启用了USB共享。
共享网络开关立刻又变成了关闭状态。
该设备不会出现在Visual Studio的调试设备选择中。
我尝试了不同的USB线缆,但出现了相同的问题。
我该如何使共享网络工作,或者如何在我的设备上进行调试?
英文:
I want to debug my MAUI app on an Android device.
The Android API version is in the allowed range.
I connect the device to the PC where I use Visual Studio.
Developer options are enabled.
USB debugging is enabled.
I go to Tethering & Mobile Hotspot and enable USB tethering.
The tethering switch immediately goes back to off.
The device does not appear in the Visual Studio selection of debug devices.
I tried with different USB cable and get the same issue.
How can I get the tethering working respectively how can I debug on my device?
答案1
得分: 1
你不需要使用数据共享和移动热点。
通常你需要做以下操作:
-
启用USB调试。
-
在设置中将“使用USB连接”设置为“传输文件”。
(你会收到通知,点击它会带你到那里)
有时候你会看到一些不错的选项,比如:
“只允许充电模式下的ADB调试”
这样你甚至不需要设置。
有时候你需要额外的确认对话框,会弹出在你的设备上,要求你授权连接。(点击“允许”)
而这在现今已经不是很相关的事情了,但是没有驱动程序的话,你什么都做不了。幸运的是,你只需要插入你的设备,设置模式,它就会自动下载驱动程序。(我假设是Windows操作系统)
数据共享和热点是另一回事。
英文:
You do not need Tethering and Mobile hot spot.
Usually you do:
-
Enable USB debugging.
-
And in Settings you set "Use USB to" to Transfer files.
(You will have notification, that when you click on it, it brings you there)
Sometimes you have nice options like:
"Allow ADB debugging in charge only mode"
So you don't even have to set it.
Sometimes you need additional confirmation dialog that will pop on your device, that will request from you authenticate the connection. (Click "Allow")
And this is not really relevant those days, but without drivers you cannot do anything. Luckily all you have to do is plug your device, set the mode, and it will download them automatically. (I assume Windows OS).
Tetherings and Hotspots are something else.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论