Android studio 2020.3.1 检测到手机时,logcat 中没有可调试的进程 [英] Android studio 2020.3.1 No debuggable processes in logcat when phone detected

查看:43
本文介绍了Android studio 2020.3.1 检测到手机时,logcat 中没有可调试的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我对 android studio 2020.3.1android studio 4.2.2 的新版本有问题.当我插入手机调试应用程序时,logcat可以检测到我的手机,但我无法选择进程.它说no debuggable processes",不常见的no debuggable applications".

I have problem with new version of android studio 2020.3.1 and android studio 4.2.2. when I plug in my phone to debug apps, logcat can detect my phone, but I can not choose process. It said "no debuggable processes",not common "no debuggable applications".

我不认为项目和设备有问题,因为在 Android Studio 4.1 版本上一切正常,而这个问题仅在 2020.3.1 版本上出现.

I don't think there is a problem with projects and devices because everything is fine on version 4.1 of Android Studio and this problem only occurs on version 2020.3.1.

这是所有设备和所有项目的问题.我检查了以下所有内容,但问题没有解决:

This is a problem for all devices and all projects. I checked all the following but the problem was not resolved:

1- 在 gradle 中启用可调试

1- debuggable in enable in gradle

2- 在构建变体中选择调试

2- choose debug in build variant

3- 杀死 adb 并重新启动它

3- kill adb and strart it again

4- 使缓存无效

推荐答案

对于居住在 伊朗 的开发人员来说,这与 sanctions 相关.version 4.2 发布后,谷歌使用更多方法来识别我们来自哪里,其中两种可能是区域和区域格式.所以你应该把它们换到另一个国家,然后更新sdk来解决问题.

For developers who are living in Iran it's related to sanctions. after version 4.2 is released google use more ways to identify where we are come from and two possible of them is Region and Regional Format. therefore You should change them to another country and then update sdk to solve the problem.

用于在 windows 10 中将区域更改为 united states :

for change region to united states in windows 10 :

设置 ->时间 &语言 ->区域 ->在国家或地区下拉菜单中选择美国.

setting -> time & language -> region -> select united states in country or region drop down .

这篇关于Android studio 2020.3.1 检测到手机时,logcat 中没有可调试的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆