Ad

Why Is This Warning Showing When I Try To Debug My Flutter Application

- 1 answer

This is not an error, this warning showing when I run or Debugging my app,

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

how do I fix and what's the exact problem is this?

Ad

Answer

Try upgrading the gradle wrapper version (gradle-wrapper.properties) and the gradle plugin version (/android/build.gradle) to the latest ones.

In gradle-wrapper.properties:

distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

In /android/build.gradle:

classpath 'com.android.tools.build:gradle:7.1.0'
Ad
source: stackoverflow.com
Ad