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
에러가 발생하는 이유Permalink
Project의 Android SDK Version이 30 이상이면 이 에러를 만날 수 있습니다.
이 에러가 발생하는 이유는 Android Gradle build 과정에서 Target Android Version, Gradle Version 그리고 Grade build tool Version이 맞지 않아서 발생하는 문제입니다.
1.android/build.gradle 수정
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2' // Update this line
...
}
2.android/gradle/wrapper/gradle-wrapper.properties 수정
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip # Update this line
출처 :
https://sianux1209.github.io/flutter/flutter_gradle_error/