【发布时间】:2022-01-10 03:02:13
【问题描述】:
我的 Android 手机是定制的。我创建了一个空的 Flutter 项目,发现 Flutter 并没有在这个 Android 手机上运行。手机系统版本如下:
显示如下错误信息:
01/10 10:38:10: Launching 'app' on vivo V2036A.
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
List of apks:
[0] '/Users/gengyibin/untitled1/build/app/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'Failed to commit install session 965055649 with command
cmd package install-commit 965055649. Error:
INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION'
Retry
我的颤振医生-v:
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.1 20G80 darwin-arm, locale
zh-Hans-CN)
• Flutter version 2.5.3 at /Users/gengyibin/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 18116933e7 (3 months ago), 2021-10-15 10:46:35 -0700
• Engine revision d3ea636dc5
• Dart version 2.14.4
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/gengyibin/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.1, Build version 13A1030d
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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.10+0-b96-7249189)
[✓] VS Code (version 1.62.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
???? https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
• No issues found!
【问题讨论】:
-
我试过了,Android Studio 北极狐 | 2020.3.1补丁(4)Instant Run对应的是HotSwap,但还是一样的错误
-
@keyur setting
-
您的设备有哪个操作系统版本?
-
@HardikMehta vivo Y30 Funtouch OS_10.5 Android 10