1. How to Fix Android License Status Unknown In Flutter?
Users can give a try to below things in a command prompt.
flutter doctor --android-licenses
and type Y when needed to accept the licenses.
Note : Try to run as administrator
It means your java is not installed or not the correct version. move to the next step.
Step: #1 JAVA 8.1 and JAVA_HOME path.
Install JAVA 8.1 and set the JAVA_HOME path. Make sure it is version 8.1 register a free account and download from oracle the 8.1 version, remember above 11+ won’t work for flutter
...................................................................................................................................................................................................................................
2. How to Solve No Connected Devices in Flutter?
<ANDROID_SDK_HOME>\platform-tools>adb devices
List of devices attached
4df798d76f98cf6d unauthorized
.......................................................
Restart ADB Server:
adb kill-server
adb start-server
...................................................................................................................................................................................................................................
3. Dart DevTools?
Dart DevTools exited with code 1. Resolving dependencies... + args 1.6.0 + async 2.4.2 + browser_launcher 0.1.7 + charcode 1.1.3 + collection 1.14.13 + convert 2.1.1 + crypto 2.1.5 + devtools 0.9.3+4 + devtools_server 0.9.3+4 + devtools_shared 0.9.3+4 + http 0.12.2 + http_multi_server 2.2.0 + http_parser 3.1.4 + intl 0.16.1 + logging 0.11.4 + meta 1.2.3 + mime 0.9.7 + path 1.7.0 + pedantic 1.9.2 + shelf 0.7.9 + shelf_proxy 0.1.0+7 + shelf_static 0.2.8 + source_span 1.7.0 + sse 3.5.0 + stack_trace 1.9.5 + stream_channel 2.0.0 + string_scanner 1.0.5 + term_glyph 1.1.0 + typed_data 1.2.0 + usage 3.4.2 + uuid 2.2.2 + vm_service 5.2.0 + webkit_inspection_protocol 0.7.3 Downloading devtools 0.9.3+4... Failed to rename directory because access was denied. This may be caused by a virus scanner or having a file in the directory open in another application.
Solutions
So, please try running this from your terminal
flutter pub global activate devtools
Note : Try to run as administrator
Flutter/bin/cache/dart-sdk/bin/pub global activate devtools
in Mycase -
C:\Users\sapan\Downloads\flutter_windows_1.22.2-stable\flutter\bin\cache\dart-sdk\bin>pub global activate devtools
https://pub.dev/packages/devtools/install
pub global activate devtools
Type chrome => http://127.0.0.1:9100/
Connecting to VM Service at
No comments:
Post a Comment