2026-02-27 10:14:14 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 16:48:36 +07:00
2026-02-26 10:39:42 +07:00
2026-02-27 10:14:14 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 16:48:36 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 14:28:55 +07:00
2026-02-26 10:39:42 +07:00
2026-02-26 14:28:55 +07:00
2026-02-26 14:28:55 +07:00

baseproject

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Cấu hình Environment NDK (Windows)

  • Khi build báo lỗi không tìm thấy Android NDK Clang, ngoài local.properties có thể thêm biến môi trường:

    • ANDROID_NDK_HOME=C:\Users\hieudm\AppData\Local\Android\Sdk\ndk\26.1.10909125
    • (Tuỳ chọn) ANDROID_NDK_ROOT=C:\Users\hieudm\AppData\Local\Android\Sdk\ndk\26.1.10909125
    • Đảm bảo thư mục trên tồn tại và trùng với version NDK đã cài trong Android Studio.
  • Sau khi thêm biến môi trường, đóng và mở lại terminal/IDE rồi chạy:

    flutter doctor -v
    flutter run
    

Cấu hình môi trường Android

  • Java / JDK

    • Cài Android Studio mới nhất (kèm JDK 21/17).
    • Dùng cùng JDK mà flutter doctor -v đang báo (không cần cấu hình thêm nếu đã OK).
  • Android SDK & NDK

    • Mở Android StudioSettingsAndroid SDK → tab **SDK Tools`.
    • Bật Android SDK Command-line Tools, CMake, NDK (Side by side).
    • Bật Show Package Details, chọn NDK 26.1.10909125.
  • android/local.properties

    • File cần có dạng:
      sdk.dir=C:\\Users\\hieudm\\AppData\\Local\\Android\\Sdk
      ndk.dir=C:\\Users\\hieudm\\AppData\\Local\\Android\\Sdk\\ndk\\26.1.10909125
      flutter.sdk=C:\\flutter
      flutter.buildMode=debug
      flutter.versionName=1.0.0
      flutter.versionCode=1
      
    • Thay C:\\Users\\hieudm nếu user Windows khác.
  • android/app/build.gradle (Android)

    • Bên trong block android { ... } cần có:
      android {
          namespace "com.example.baseproject"
          compileSdkVersion 36
          ndkVersion "26.1.10909125"
          ...
      }
      
  • Lệnh tiện ích

    • Tạo splash:
      flutter pub run flutter_native_splash:create
      
    • Chạy build runner:
      flutter pub run build_runner build --delete-conflicting-outputs
      
    • Tạo app icon:
      flutter pub run flutter_launcher_icons:main
      

Ghi chú iOS

  • Khi gặp lỗi CocoaPods có thể thử:
    pod deintegrate
    pod cache clean --all
    pod install
    
Description
No description provided
Readme 3.9 MiB
Languages
Dart 97.5%
C++ 1.3%
CMake 0.6%
HTML 0.3%
Ruby 0.1%