Saturday, March 11, 2023

[flutter][error] 'attrib' is not recognized as an internal or external command, operable program or batch file.

 Error:(During compilation, Android Studio issue error message)'attrib' is not recognized as an internal or external command, operable program or batch file.Possible explanation:This problem occurred because the system didn't found the 'attrib' file.Solution:Check environment path to see if "C:\Windows\System32" exists.e.g. C:\Java\jdk-11\bin;C:\src\flutter\bin;C:\Windows\System32;Otherwise add the path.e.g. setx "C:\Windows\System32;"Reference:https://stackoverflow.com/questions/64843125/attrib-is-not-recognized-as-an-internal-or-external-command-operable-program... Read More

[flutter][error] Android Device File Explorer Not Showing Up In Android Studio Tools Menu

 problem:I want to view the database files in my adb device but the option of device file explorer is missing in android studio when flutter project is opened.possible solution:.Go to Project Structure.Click tab Modules on the left sidebar.Click your project and click the plus icon.Add Android in the FrameworkClick OK to finish.Ref: https://github.com/flutter/flutter-intellij/issues/4994#issuecomment-856999849.https://stackoverflow.com/questions/51608762/device-file-explorer-option-missing-in-flutter-android-studio... Read More

Friday, March 10, 2023

[flutter] Flutter Getting Started 20230317

 .1) Dart Programming ReferencesDart Programming Language:https://dart.dev/ https://dart.dev/codelabshttps://dart.dev/#try-dartThe official package repository for Dart and Flutter apps:https://pub.dev/2) Flutter App Development Using Android StudioPre-requisiteInstall Java JDK11After java installation, update the environment path...setx -m JAVA_HOME "C:\\Java\jdk-11"setx -m PATH "%JAVA_HOME%\bin;%PATH%"Then open another command prompt window and type java –version, check that the version is 11.Install Flutter Plug-In1. Install the Flutter and Dart pluginssetx -m PATH "C:\\src\flutter\bin;%PATH%"2. Start Android Studio.3. Open plugin preferences (Preferences > Plugins as of v3.6.3.0 or later).4. Select the Flutter plugin and click Install.5. Click Yes when prompted to install the Dart plugin.6. Click Restart when prompted.(https://docs.flutter.dev/get-started/editor)After Flutter Plug-in installation, Flutter project... Read More

Thursday, March 9, 2023

[flutter][flutter2] gradle build log

 .Launching lib\main.dart on sdk gphone x86 in debug mode...Running Gradle task 'assembleDebug'...Checking the license for package Android SDK Tools in C:\portapps\android-studio-portable-flutter2\data\sdk\licensesLicense for package Android SDK Tools accepted.Preparing "Install Android SDK Tools (revision: 26.1.1)"."Install Android SDK Tools (revision: 26.1.1)" ready.Installing Android SDK Tools in C:\portapps\android-studio-portable-flutter2\data\sdk\tools"Install Android SDK Tools (revision: 26.1.1)" complete."Install Android SDK Tools (revision: 26.1.1)" finished.Checking the license for package Android SDK Build-Tools 29.0.2 in C:\portapps\android-studio-portable-flutter2\data\sdk\licensesLicense for package Android SDK Build-Tools 29.0.2 accepted.Preparing "Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)"."Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" ready.Installing Android SDK Build-Tools 29.0.2 in C:\portapps\android-studio-portable-flutter2\data\sdk\build-tools\29.0.2"Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)"... Read More