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:

.

  1. Go to Project Structure.

enter image description here

  1. Click tab Modules on the left sidebar.
  2. Click your project and click the plus icon.

enter image description here

  1. Add Android in the Framework

enter image description here

  1. Click 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 References


Dart Programming Language:

https://dart.dev/ 

https://dart.dev/codelabs

https://dart.dev/#try-dart


The official package repository for Dart and Flutter apps:

https://pub.dev/




2) Flutter App Development Using Android Studio


Pre-requisite

Install Java JDK11
After 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-In



setx -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.


After Flutter Plug-in installation, Flutter project creation option will appear in Android Studio project creation wizard.



Add the Flutter SDK path to the Android Studio.








3) Flutter Development Using Cloud Services


FlutLab:

https://flutlab.io/


ZappRun Flutter Web App:

https://zapp.run/edit/flutter


Free Drag-n-Drop UI Builder for Flutter Apps:

https://flutterviz.com/


Missing Feature:

https://runcode.io/flutter-online-coding-platform


4) tutorial

ui control

https://pastebin.com/UXZsWzK1#fpuvGzWc


.

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\licenses

License 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\licenses

License 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)" complete.

"Install Android SDK Build-Tools 29.0.2 (revision: 29.0.2)" finished.

Checking the license for package Android SDK Platform 31 in C:\portapps\android-studio-portable-flutter2\data\sdk\licenses

License for package Android SDK Platform 31 accepted.

Preparing "Install Android SDK Platform 31 (revision: 1)".

"Install Android SDK Platform 31 (revision: 1)" ready.

Installing Android SDK Platform 31 in C:\portapps\android-studio-portable-flutter2\data\sdk\platforms\android-31

"Install Android SDK Platform 31 (revision: 1)" complete.

"Install Android SDK Platform 31 (revision: 1)" finished.

√  Built build\app\outputs\flutter-apk\app-debug.apk.

Installing build\app\outputs\flutter-apk\app.apk...


.



.



Read More