QC

Unable to find git in your PATH Flutter

 Unable to find git in your PATH.

Vào 1 ngày bạn vào vscode và mở dự án flutter lên và thấy : Unable to find git in your PATH Flutter

Mô tả lỗi :


Bạn cố gắng try bằng  reload hay lệnh : flutter doctor 


Bạn làm 2 cách sau : 

Cách 1 : Bấm vào tìm kiếm : environment variables  

in windows 10 C:\src\flutter\bin C:\Windows\System32 C:\Windows\System32\WindowsPowerShell\v1.0 C:\Program Files\Git\bin\git.exe C:\Program Files\Git\cmd

Add các biến môi trường vào.


Cách 2:  vào trong thư mục flutter bạn tải về settup lúc trước vào ổ C tìm flutter tựa link mình như sau : C:\flutter\bin\internal  

Mở file share.bat 



Bạn có thể coppy như sau tìm tới để dễ chỉnh sữa.

  SET git_exists=false
  2>NUL (
    PUSHD "%flutter_root%"
    FOR /f %%r IN ('git rev-parse HEAD') DO (
      SET git_exists=true
      SET revision=%%r
    )
    POPD
  )

Chỉnh thành như sau : 

  SET git_exists=true
  2>NUL (
    PUSHD "%flutter_root%"
    FOR /f %%r IN ('git rev-parse HEAD') DO (
      SET git_exists=true
      SET revision=%%r
    )
    POPD
  )

THÀNH QUẢ

Sau đó lưu lại mở vscode dự án flutter lên và sẽ thấy như sau gõ lệnh : flutter doctor như sau




Build và chạy thử :



Chúc các bạn thành công !





Nap Code vào PY32F003 dùng Stlink

 Nap Code vào PY32F003 dùng Stlink Bước 1: Cài đặt  KeilC v5.39 theo link sau ( chú ý 5.39 keil c mới nạp ok). https://edge07.111.ir.cdn.ir/...