when I try to run the desktop application in a flutter. i write on terminal flutter run -d windows
give this the below error
Launching lib\main.dart on Windows in debug mode...
Nuget is not installed.
CMake Error at flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/windows/CMakeLists.txt:28 (message):
Integrity check for E:/Kabbee/Kp_Destop_App/build/windows/nuget.exe failed.
Building Windows application...
Exception: Unable to generate build filesenter image description here
Related
Newbee here. Trying to run the android emulator for the generic first_app flutter application.
Run flutter run -d windows
Receive:
C:\Development\Flutter\first_app>flutter run -d windows
Launching lib\main.dart on Windows in debug mode...
lib/main.dart(60,15): error G67247B7E: Expected ';' after this. [C:\Development\Flutter\first_app\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'C:\Development\Flutter\first_app\build\windows\CMakeFiles\13756e3632117b79f6e0bc292bc438e0\flutter_windows.dll.rule;C:\Development\Flutter\first_app\build\windows\CMakeFiles\f154f6c681490929a1ff6491e40cd6b3\flutter_assemble.rule' exited with code 1. [C:\Development\Flutter\first_app\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...
Exception: Build process failed.
Other information:
Flutter Doctor is clean. That took hours.
Running from Android Studio works.
Launching emulator works correctly
Have tried Flutter Clean, Flutter upgrade, Flutter Master.
Have tried running from powershell with the same error.
Any assistance welcomed.
First you can check if the emulator is running or not by this command
flutter devices
Then you can directly run your app through
flutter run -d device-id
In my case, it was
flutter run -d emulator-5554
All, on a whim, I deleted my first_app and created it again via flutter create first_app.
Immediately running flutter run, it works!
Launching lib\main.dart on Chrome in debug mode...
lib\main.dart:1
Failed to launch browser after 3 tries. Command used to launch it: C:\Users\admin\AppData\Local\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\admin\AppData\Local\Temp\flutter_tools.d39b26cf\flutter_tools_chrome_device.96f3921c --remote-debugging-port=55848 --disable-background-timer-throttling --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check --disable-default-apps --disable-translate http://localhost:55815
Failed to launch browser. Make sure you are using an up-to-date Chrome or Edge. Otherwise, consider using -d web-server instead and filing an issue at https://github.com/flutter/flutter/issues.
flutter config --enable-web
Add this
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:
i am trying to build and run a flutter app on windows but i get the following error
Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.15 or higher is required. You are running version
3.14.19060802-MSVC_2
but my current cmake version is cmake version 3.20.0-rc1
added a CMakeSettings jason file but did not solve the problem
all help is appreciated
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