2

My Android phone is customized. I created an empty Flutter project and found that the Flutter does not run on this Android phone. The mobile system version is as follows:

enter image description here

The following error message is displayed:

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

My flutter doctor -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!
Nimantha
  • 6,405
  • 6
  • 28
  • 69
Eason
  • 31
  • 4

1 Answers1

0

Build the app, then try to run it. It may solve the problem.

Gourango Sutradhar
  • 1,461
  • 10
  • 16
  • I tried Rebuild, but the problem still exists – Eason Jan 10 '22 at 03:37
  • flutter build apk --reelease Then install manually the apk to your phone, and check it. – Gourango Sutradhar Jan 10 '22 at 03:42
  • Thanks in advance.I tried it according to your suggestion, and the mobile phone reported an abnormal application installation (-102).[Install error](https://i.stack.imgur.com/qW5RY.jpg) I tried to search the error code -102, but no useful information was found – Eason Jan 10 '22 at 06:30
  • I think there is some problem in your android - manifest. Will you please post the manifest here? – Gourango Sutradhar Jan 10 '22 at 07:22
  • Sure, but I created an empty Flutter project and everything is default[AndroidManifest.xml](https://i.stack.imgur.com/7guge.jpg),I suspect it's a system problem with custom phones, but I'm not entirely sure – Eason Jan 10 '22 at 08:03