App 개발관련/flutter
[Flutter] Android MultiDex 해결하기
후니의 개발이야기
2022. 5. 17. 17:43
728x90
반응형
매번 나오는 오류인데 기록을 하지 않아서 기억하기 위해서 기록을 합니다.
build.gradle 에 defaultConfig 를 설정해주셔야합니다.
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "kr.ourcodelabs.navid"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19 <= 변경
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true <= 추가
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.android.support:multidex:1.0.3"
}
dependencies에 아래와 같이 추가를 해주시면 multidex에 대한 오류는 더이상 나지가 않습니다
역시 오늘도 느끼는건 소스보다는 이런 정리가 더 필요하다는 것입니다.
728x90