flutter error when debug in android 5 device - flutter

I'm new in flutter,
I installed flutter, IDE, Android Studio and SDKs in my laptop win 10 recently,
Now When I want to test first default app in my android device, I always face with this error
"Launching lib\main.dart on SM N900 in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Error: ADB exited with exit code -1073741674
Error launching application on SM N900.
"
in addition I should say no problem exist after running flutter doctor
now I run flutter run --verbose
result:

Related

how to fix this error adb shell failed to write the SHA hash?

Error 1 retrieving device properties for AOSP on IA Emulator:
/system/bin/sh: no closing quote
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
/system/bin/sh: no closing quote
Installing build\app\outputs\flutter-apk\app.apk...
adb shell failed to write the SHA hash: ProcessException: Process exited abnormally:
/system/bin/sh: no closing quote
Command: C:/Users/SeEAll/AppData/Local/Android/Sdk\platform-tools\adb.exe -s emulator-5554 shell echo -n 11e25735db8e75cc385109f5dbaa099607817a8e > /data/local/tmp/sky.com.example.learn_flutter.sha1.
Error launching application on AOSP on IA Emulator.
Everything builds and installs perfectly on the emulator. But it can 't open the application itself and I has to close the old version every time and open a new one .

Flutter can't build for macOS

Full disclosure total dart / flutter noob.
Trying to build the example app for macOS desktop. Using Android Studio, intel mac, macOS Monterey. Building for iOS or chrome works fine. When building for macOS I just get the following error:
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **
Exception: Build process failed
Not much to go on with that error...
Thanks for any help

Flutter App running on emulator but not installing on real device its going till installing but stuck there

FlutterApp running on emulator but not installing on real device its going till installing but stuck there.
it is stuck here!
Launching lib/main.dart on V2043 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
It's stuck here not going forward

Flutter Project Launch Issue with VsCode

I use my phone as an emulator while developing applications with Flutter.
After updating to the Flutter 2 version, Web Folder added to Flutter file directory, I know that.
but i can't run the project
Here I started the classic flutter counter app and the result:
Launching lib\main.dart on MI 5 in debug mode...
lib\main.dart:1
Exception: Gradle task assembleDebug failed with exit code -1
Exited (sigterm)
I searched for a solution on the internet but could not solve this stupid error
how can i solve this problem?
Connect to Internet
run flutter clean
then flutter pub get
then flutter run .
This might help, try it out.
This error usually comes when some files are pending download or so.
if I use flutter run command from terminal
Launching lib\main.dart on MI 5 in debug mode...
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 76,3s
Exception: Gradle task assembleDebug failed with exit code -1
I'm not sure but,
Try changing minSdkVersion from 16 to 21
You can find this property in ./android/app/build.gradle
Then do a flutter clean and run the project
If this does not work there might be issue with the emulator or the flutter version.

Error when debugging Flutter app in VSCode

When I try to debug my Flutter app in VSCode it shows an error.
I debug using Huawei Y5 Prime 2018 (DRA-LX2)
Log:
Launching lib\main.dart on DRA LX2 in debug mode...
√ Built build\app\outputs\apk\debug\app-debug.apk.
Failed to extract manifest from APK: ProcessException: The command failed
Command: C:\Users\Mohammed\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump
xmltree D:\dicee-flutter\build\app\outputs\apk\app.apk AndroidManifest.xml.
Exception: Problem building Android application: see above error(s).
Exited (sigterm)
What should I do to fix this?
try this command
flutter clean