我最近在我的 Redmi Note 8 Pro 上安装了 Pixel Experience Plus ROM。当我尝试通过 adb 进行流式安装或卸载时,它会失败并且$ flutter run
命令在“安装 apk”步骤时失败/停止。
这适用于现有应用程序以及使用$ flutter create <appname>
.
请帮助让这些工作 PS:恢复到 MIUI 可能会工作,但如果我想这样做,我不会发布这个问题
我在这里附上相关日志:
$ flutter run -v
在这里记录$ flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1237], locale en-IN)
• Flutter version 2.5.0 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4cc385b4b8 (3 weeks ago), 2021-09-07 23:01:49 -0700
• Engine revision f0826da7ef
• Dart version 2.14.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Suraj\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Android Studio (version 4.2)
• Android Studio at C:\Program Files\Android\Android 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 Runtime Environment (build 11.0.8+10-b944.6842174)
[✓] VS Code (version 1.57.1)
• VS Code at C:\Users\Suraj\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• Redmi Note 8 Pro (mobile) • da45voeatoonheha • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 93.0.4577.82
• Edge (web) • edge • web-javascript • Microsoft Edge 94.0.992.31
• No issues found!
$ adb install 'C:\Users\Suraj\Desktop\projs\newapp\build\app\outputs\apk\debug\app-debug.apk'
在下面登录
Performing Streamed Install
adb: failed to install C:\Users\Suraj\Desktop\projs\newapp\build\app\outputs\apk\debug\app-debug.apk: