Illegal byte sequence zipro W 10-02 23:01:47 10808 9104 Error opening archive T:\my_app\build\app\outputs\flutter-apk\app.apk: I/O error ERROR: dump - flutter

I have created this project before and I'm trying to run it again but I am getting the following error(s) :
Error Log:
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
lib\main.dart:1
√ Built build\app\outputs\flutter-apk\app-debug.apk.
ziparchive W 10-02 23:01:47 10808 9104 Unable to open 'T:my_ap\build\app\outputs\flutter-apk\app.apk': Illegal byte sequence
zipro W 10-02 23:01:47 10808 9104 Error opening archive T:\my_app\build\app\outputs\flutter-apk\app.apk: I/O error
ERROR: dump failed because resource AndroidManifest.xml not found
Failed to extract manifest from APK: ProcessException: The command failed
Command: C:\Users\cordt\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree T:\batí\Mail\projects\shop_app_3\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml.
Exception: Problem building Android application: see above error(s).
Exited (sigterm)
I have tried flutter clean but it didn't help me.

I came across a similar problem on an app I've been working on, the key takeaway is that this happened immediately after I update to the latest version of My flutter SDK. These are the steps I followed to solve this problem.
flutter create .
flutter clean
flutter pub get
flutter run

Related

flutter project - INSTALL_FAILED_NO_MATCHING_ABIS when trying to install on device

I am getting this kind of error in vs code from past 1 day and implemented all possible results
but, I dint get any solution plz help me to get rid of this
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install F:\flutter firebase\authenticationapp\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Error launching application on vivo 1819

how i can solve this problem in flutter application

Launching lib\main.dart on SM A105F 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 1
Performing Streamed Install
adb: failed to install C:\Users\ABDERRAHIM\flutter-1\bouzid_app\build\app\outputs\flutter-apk\app.apk:
Exception occurred while executing:
android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:564)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:2700)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1061)
at com
Error launching application on SM A105F.
Your error states the following java.io.IOException: Requested internal only, but not enough space at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34). Do you have enough free space on your device?
Please search the web before posting a question: Flutter - android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
According to #dariush f's answer answer:
Maybe your device/emulator's storage is full. Try deleting some apps or similar to free up storage.
Or
Invalid package name . for example using capital letter in package name. use this to change package name in flutter

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

Flutter get error "Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain"

I'm trying to run my project , I am getting error
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Exception: Gradle task assembleDebug failed with exit code 1
It is hard to know the problem with so little information. One general approach with worked to me was performing:
flutter clean
Try to run.
If it does not run delete the jar file under android/gradle/properties to recompile it and try again.