Warning: Mapping new ns 경고

oen·2022년 1월 30일
0

🇫 Flutter

목록 보기
7/14

경고메세지:

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

원인

gradle plugin 이 예전 버전이어서

해결방법

gradle plugin version 업데이트

  1. android/build.gradle 최신 버전으로 수정
dependencies {
        classpath 'com.android.tools.build.gradle-7.0.2'
  1. android/gradle/wrapper/gradle-wrapper.properties 수정
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
  1. 빌드 후 정상 작동 확인되면 android/.gradle에서 구버전 (6.7) 삭제
profile
🐾

0개의 댓글