我无法通过安卓工作室创建虚拟设备,也无法使用 adb 配置我的手机



创建AVD时出错创建AVD时出错。有关详细信息,请参阅idea.log。

我用的是windows 11,今天有最新版本。我不使用安卓工作室来编程,我使用VSCode和flutter进行编程,我已经有一段时间没有使用这台电脑了,现在除了无法创建AVD(bios中启用了虚拟化(之外,我无法连接我的手机将其发送给它,当我尝试通过wifi连接时,它会在终端中返回给我:

{path}Sdkplatform-tools> ./adb pair 191.52.129.80:43883
Enter pairing code: 485667
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: protocol fault (couldn't read status length): connection reset
When I connect by usb cable, it returns me this:
! Device RX8N207HSZK is not authorized.
You might need to check your device for an authorization dialog.

由于我已经授权了一切,而且在我的另一台电脑上它也能工作。

Java version:
Picked up _JAVA_OPTIONS: -Xmx512M
java 17 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
Flutter version:
Flutter 2.10.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7e9793dee1 (31 hours ago) • 2022-03-02 11:23:12 -0600
Engine • revision bd539267b4
Tools • Dart 2.16.1 • DevTools 2.9.2

下面我将留下所有颤振医生信息与-v参数:

[✓] Flutter (Channel stable, 2.10.3, on Microsoft Windows [version 10.0.22000.493], locale pt-BR)
• Flutter version 2.10.3 at C:flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (31 hours ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:UserspedroAppDataLocalAndroidsdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version openjdk version "11.0.11" 2021-04-20
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:Program FilesGoogleChromeApplicationchrome.exe
[✗] Visual Studio - develop for Windows
✗ Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[✓] Android Studio (version 2021.1)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version openjdk version "11.0.11" 2021-04-20
[✓] VS Code (version 1.64.2)
• VS Code at C:UserspedroAppDataLocalProgramsMicrosoft VS Code
• Flutter extension version 3.36.0
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.22000.493]
• Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.51
• Edge (web) • edge • web-javascript • Microsoft Edge 98.0.1108.62
! Device RX8N207HSZK is not authorized.
You might need to check your device for an authorization dialog.
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.

简言之:我迫切需要一个解决方案,我已经尝试从我知道的位置删除android工作室("user/{user_name}/android"、"AppData/local/android"one_answers"AppData/rooning/Google/AndroidStudio"(以及程序文件中的android工作室文件夹并重新安装它,我尝试重新安装flutter和java,但什么都没有,我希望我不需要格式化我的机器:"(

我设法以一种奇怪的方式解决了这个问题。我从另一台工作电脑上复制了".android"文件夹,并将其粘贴到这台电脑上,它就工作了。

相关内容

最新更新