teerasej / flutter-handbook

12 stars 0 forks source link

geolocation error android #2

Closed AnnNtY closed 3 years ago

AnnNtY commented 3 years ago

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps at https://flutter.dev/go/android-project-migration to migrate your project. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Launching lib\main.dart on AOSP on IA Emulator in debug mode... lib\main.dart:1 [!] Your app isn't using AndroidX. To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY .

FAILURE: Build failed with an exception.

BUILD FAILED in 34s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

teerasej commented 3 years ago

ขอบคุณครับ

ตรวจสอบแล้ว เกิดจากการไม่ compatible ของเวอร์ชั่น flutter ในโปรเจคที่เราใช้ กับตัว package location ตอนนี้ได้ทำการแก้ไขตัว project และอัพเดตเนื้อหาใน workshop ให้เป็นเวอร์ชั่นล่าสุดแล้ว

ก่อนใช้อย่าลืมรันคำสั่งอัพเป็น flutter 2.0.1 ด้วยคำสั่ง

flutter upgrade 

ใน terminal หรือ command prompt นะครับ