Why do I get the Error: ADB exited with exit code 1 - flutter

If I want to start a simple app, which I used a few weeks ago without an error, I get an error.
That´s he error discription:
Launching lib\main.dart on SM J530F in debug mode...
Running Gradle task 'assembleDebug'...
Parameterformat falsch -
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\Users\Simon\Desktop\App Entwickeln\Projekte\test_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on SM J530F.

From: Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android
Solution Run:
adb shell "pm uninstall " adb shell "rm -rf
/data/app/-*"
OR
Uninstall the app
Use your favorite method to delete BOTH:
/data/app/-1.apk
/data/app/-2.apk
Make sure nothing else blocks future installs in a similar way. In my
case I had a /data/app-lib/-1 directory lingering
around! In this case, an install to the SD card worked, and a
subsequent move to internal memory, too. (Creating
/data/app-lib/ without the -1 ending.)
For me the second solution worked!

I had the same Problem and the solution is deleating something from your device. The Problem is, that the storeg is full

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

Flutter App stuck at “Running Gradle task 'assembleDebug'… ”

Please I need Help Solving this Issue
I have been running my flutter app without issues, but recently I can't run or debug my apps again, each time I try running my app from the terminal or debug console it always get stuck at Flutter App stuck at “Running Gradle task 'assembleDebug'”
C:\Development\projects\flutter>cd kchat
C:\Development\projects\flutter\Kchat>flutter run
Running "flutter pub get" in Kchat... 3.6s
Launching lib\main.dart on GIONEE S10C in debug mode...
Running Gradle task 'assembleDebug'...
(This is taking an unexpectedly long time.)
I have solved the problem by running
flutter run -v
it fixed all the problem but took a longer time, and I can now use
flutter run
but still can't use Debug console
Alternatively, try to fix your project.
Delete the android folder in your project, having previously saved it in another place, then in the terminal run flutter create your_project_name for the folder in which your project is located.

Flutter error - Exception: Gradle task assembleDebug failed with exit code -1

I'm working on a Flutter Application Project.
For a few days I have an issue when running my application. To test it, I create another project but issue is still present.
I have this exception : Gradle task assembleDebug failed with exit code -1
Issue part 1
Issue part 2
If someone has already encountered this problem or has any idea how to solve it i am really interested.
Thanks in advance.
----- UPDATE ----
My issue came from antivirus program which removed my sdkmanager.bat.
When I was doing "flutter doctor", the license was always "not accepted" and after the command "flutter doctor --android-licenses" the sdkmanager was not found.
Solution
On Windows :
do the command Windows + R
Search msconfig
Go to Services
Hide Windows Services
And find this famous antivirus
To finish, reinstall sdk tools (I have the sdk command line tools (obsolete))
I hope this will help you.
In flutter you can generate APK using this command inside your app directory:
flutter build apk --split-per-abi
This will generate 3 apks for different architecture
I have run into this issue before. This happened to me because terms and conditions that you must accept. First, go to the terminal and run
flutter doctor
It should then show you that you have not accepted the terms, and ask you if you want to accept them now. Follow the instructions on screen and accept each one, there will be around 7. After that relaunch your IDE and it should run fine now.
To reply to your answer #Landon Stahl, I haven't issue when I order flutter doctor
Before try to run
And after try to run app I have : "Android license status unknown"
after try to run

Flutter : How to fix 'Gradle task assembleDebug failed with exit code -1'?

I just started using flutter on vscode and the Android emulator is connected to vscode. when I run the first flutter code by pressing f5 is not running, and on the console it says:
Launching lib\main.dart on Samsung in debug mode...
Gradle task assembleDebug failed with exit code -1
Exited (sigterm)
when I run it using intellij sometimes it works and sometimes it fails like the problem above. how do you solve the problem with vscode? intellij is too heavy for my computer.
This is a grade problem, and could be hard for you to debug without getting sufficient info on the problem
cd into your android directory
then
run ./gradlew build
you should be able to get the cause of the failed build

After uninstall app on device flutter run not work

I'm using vs code for building my flutter app.
But after uninstall debug app on my device, 'flutter run' command not working properly and stop in installing status.
Please help me.
Thanks.
Launching lib/main.dart on RNE L21 in debug mode...
Initializing gradle... ۱۱٫۷s
Resolving dependencies... ۱۴٫۹s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done ۱۰۱٫۷s
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk... ۶٫۱s
It seems like when you uninstall the flutter application, though it is no longer available on the phone It is not deleted properly(Only in the flutter case). Therefore to fix this. you can run adb and uninstall from the package. Here is a step-by-step procedure.
If you are in windows:
Step 1. Open your SDK path in command prompt
eg.
C:\Users\kharag\AppData\Local\Android\Sdk\platform-tools
Step 2. Search your app package name from the flutter app (It will be in AndroidManifest.xml)
eg.
com.mycodingchannel.icttapp
Step 3. Now uninstall your app by running the command:
adb uninstall com.mycodingchannel.icttapp
That's all, Now run your app and it should work. Thanks
Had the same problem, copied .apk file on device and installed it from there, after that debugger worked without any issues.
Once you see Built/..... in termial. The apk has been created. Now if the installing fails/takes long time. Go to [app folder\app\outputs\apk]
Copy the app.apk/debug.apk any other file to your device and install it.
Now once you re-run it will work fine.
If that doesn't work flutter clean+flutter pub get. Follow the above step.