Flutter๋ฅผ ์ต์ ๋ฒ์ ์ผ๋ก, Geolocator๋ฅผ ^6.1.13
๋ฒ์ ์ผ๋ก ๋์์ ์
๋ฐ์ดํธํ ํ ์ ํ๋ฆฌ์ผ์ด์
์ด Android์ฉ ๋น๋๋ฅผ ์ค๋จํ์ต๋๋ค. IOS์๋ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':geolocator:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':geolocator:debugCompileClasspath'.
> Could not resolve androidx.lifecycle:lifecycle-common:{strictly 2.0.0}.
Required by:
project :geolocator
> Cannot find a version of 'androidx.lifecycle:lifecycle-common' that satisfies the version constraints:
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
Constraint path 'com.baseflow.geolocator:geolocator:1.0' --> 'androidx.lifecycle:lifecycle-common:{strictly 2.0.0}' because of the following reason: debugRuntimeClasspath uses version 2.0.0
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.lifecycle:lifecycle-common-java8:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0' --> 'androidx.lifecycle:lifecycle-common:2.2.0'
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.savedstate:savedstate:1.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.lifecycle:lifecycle-livedata:2.0.0' --> 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' --> 'androidx.lifecycle:lifecycle-common:2.0.0'
> Could not resolve androidx.lifecycle:lifecycle-runtime:{strictly 2.0.0}.
Required by:
project :geolocator
> Cannot find a version of 'androidx.lifecycle:lifecycle-runtime' that satisfies the version constraints:
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.lifecycle:lifecycle-runtime:2.2.0'
Constraint path 'com.baseflow.geolocator:geolocator:1.0' --> 'androidx.lifecycle:lifecycle-runtime:{strictly 2.0.0}' because of the following reason: debugRuntimeClasspath uses version 2.0.0
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.activity:activity:1.0.0' --> 'androidx.lifecycle:lifecycle-runtime:2.1.0'
Dependency path 'com.baseflow.geolocator:geolocator:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-df39e5c51517a73e61647286ab21252074512c63' --> 'androidx.fragment:fragment:1.1.0' --> 'androidx.core:core:1.1.0' --> 'androidx.lifecycle:lifecycle-runtime:2.0.0'
...
[โ] Flutter (Channel master, 1.25.0-5.0.pre.125, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-CY)
โข Flutter version 1.25.0-5.0.pre.125 at /Users/Sammius/Flutter/flutter
โข Framework revision a12e2a473a (3 hours ago), 2020-12-08 23:13:04 -0500
โข Engine revision df39e5c515
โข Dart version 2.12.0 (build 2.12.0-133.0.dev)
[โ] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
โข Android SDK at /Users/Sammius/android
โข Platform android-29, build-tools 28.0.3
โข ANDROID_HOME = /Users/Sammius/android
โข ANDROID_SDK_ROOT = /Users/Sammius/android
โข Java binary at: /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java
โข Java version Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
โข All Android licenses accepted.
[โ] Xcode - develop for iOS and macOS (Xcode 12.2)
โข Xcode at /Applications/Xcode.app/Contents/Developer
โข Xcode 12.2, Build version 12B45b
โข CocoaPods version 1.10.0.rc.1
[โ] Chrome - develop for the web
โข Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
โข Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[โ] IntelliJ IDEA Community Edition (version 2019.2.3)
โข IntelliJ at /Applications/IntelliJ IDEA CE.app
โข Flutter plugin version 39.0.5
โข Dart plugin version 192.7402
[โ] VS Code (version 1.51.1)
โข VS Code at /Applications/Visual Studio Code.app/Contents
โข Flutter extension version 3.17.0
[โ] Connected device (2 available)
โข Android SDK built for x86 64 (mobile) โข emulator-5554 โข android-x64 โข Android 9 (API 28) (emulator)
โข Chrome (web) โข chrome โข web-javascript โข Google Chrome 87.0.4280.88
! Doctor found issues in 1 category.
ํ๋ซํผ:
@Sammius ์ด ๋ฌธ์ ๋ฅผ ๋ณด๊ณ ํด ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค. io.flutter:flutter_embedding_debug
๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์
๋ฐ์ดํธ๋์ด ์ด์ androidx.lifecycle:lifecycle-runtime
๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ฒ์ 2.2.0์ด ํ์ํ์ง๋ง ์ง๋ฆฌ ์์น ์ถ์ ๊ธฐ๋ ๋ฒ์ 2.0.0๋ง ์ ๊ณตํ ์ ์์ต๋๋ค.
์ง๊ธ์ Flutter ๋ฒ ํ ๋๋ ์์ ์ ์ธ ์ฑ๋์ ์ฌ์ฉํ์ฌ ์ฑ์ ๋น๋ํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
๋ค์ Flutter ์ ๋ฐ์ดํธ ํ ๋ฌธ์ ๊ฐ ์ฌ๋ผ์ก์ต๋๋ค.
[โ] Flutter (Channel beta, 1.25.0-8.1.pre, on macOS 11.0.1 20B29 darwin-x64, locale en-AU)
[โ] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[โ] Xcode - develop for iOS and macOS (Xcode 12.3)
[โ] Chrome - develop for the web
[โ] Android Studio (version 3.5)
[โ] VS Code (version 1.52.0)
[โ] Connected device (2 available)
์ด์ ์ต์ Flutter ๋ฒ ํ ์ฑ๋์ ๋ํ ๋น๋ ์คํจ
์ด๊ฒ์ ๋๋ฅผ ์ํด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค.
./android/build.gradle
classpath 'com.android.tools.build:gradle:4.1.0'
๋ก ๋ณ๊ฒฝํฉ๋๋ค../android/gradle/wrapper/gradle-wrapper.properties
์ distributionUrl
#$์ distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
๋ณ๊ฒฝ
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด์ ์ต์ Flutter ๋ฒ ํ ์ฑ๋์ ๋ํ ๋น๋ ์คํจ