New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tools] Warning: Mapping new ns
lines are printed in the logs during gradlew
#87464
Comments
Hi @Mirshodbek |
Do you know where is problem? It is being in each project. Give me recommendation for that, Thank
--
Отправлено из Mail.ru для Android понедельник, 02 августа 2021г., 19:53 +05:00 от Taha Tesser ***@***.*** :
…Hi @Mirshodbek
This is not related to Flutter itself. see this
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
This comment has been minimized.
This comment has been minimized.
Hi @Mirshodbek @devchenli
A solution suggested was to use build tools 30.0.3 but still persist, labelling for gradle
Check flutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 2.2.3 at /home/taha/Code/flutter_stable
• Framework revision f4abaa0735 (5 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/taha/Code/android-sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
• Java binary at: /home/taha/Code/android-studio-preview/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio-preview
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.58.2)
• VS Code at /usr/share/code
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 11 (API 30)
• Linux (desktop) • linux • linux-x64 • Linux
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.107
• No issues found! [✓] Flutter (Channel master, 2.5.0-2.0.pre.181, on Pop!_OS 21.04 5.11.0-7620-generic, locale en_US.UTF-8)
• Flutter version 2.5.0-2.0.pre.181 at /home/taha/Code/flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision e40d7e6ef4 (8 hours ago), 2021-08-05 14:15:04 +0800
• Engine revision c3739afe0a
• Dart version 2.14.0 (build 2.14.0-377.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/taha/Code/android-sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
• Java binary at: /home/taha/Code/android-studio-preview/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio-preview
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.58.2)
• VS Code at /usr/share/code
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 11 (API 30)
• Linux (desktop) • linux • linux-x64 • Pop!_OS 21.04 5.11.0-7620-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.107
• No issues found! ✅: No Issue ❌: Issue reproduced |
Warning: Mapping new ns
are printed in the logs during gradlew
Warning: Mapping new ns
are printed in the logs during gradlewWarning: Mapping new ns
lines are printed in the logs during gradlew
This comment has been minimized.
This comment has been minimized.
What are the steps to reproduce this issue? /cc @blasten |
I can reproduce this in the GitJournal project. |
It may not be caused by Flutter itself, but we should still figure out what's causing it and stop it, since it's clearly not useful to our users. |
It is some discrepancies in the gradle versions. I have tested with the codelab https://github.com/googlecodelabs/admob-inline-ads-in-flutter. |
Interestingly enough, I have a package, that on one machine is not throwing any warnings. On another, after an AS and SDK reinstall started throwing these warning. I have the same sdks, build tools, ndks and emulators. I cleaned build cache and cache in the ~/.android folder and the wrappers, cache and daemon folders from ~/.gradle folder, same thing. I have android sdk from 26 to 30 and the build-tools installed are 26.0.2, 28.0.3, 29.0.2, 30.0.2 and 31.0.0. The ndk's are 21.1.6352462 and 23.0.7599858. The project is setup with I'm building for emulator 29 and compileSdkVersion and targetSdkVersion is 29 |
It worked for me too! |
|
This solves the issue for me: Basically just use the latest gradle plugin and gradle version of the AndroidStudio and make sure they both match according to the official doc. |
I created a new project with 'flutter create' and saw this message on the console, I think the flutter team could update the project template to the new version of gradle
|
@insinfo with which version of flutter you are trying this? I don't think I'm seeing this in latest stable. |
I created a new project with 'flutter create' and started seeing these messages
|
To solve this issue, you have to make sure your gradle in your build.gradle and the gradle in your android/gradle/wrapper/gradle-wrapper.properties are the same version. even if they are not the latest version, it must be the tally with each other like this: distributionUrl=https://services.gradle.org/distributions/gradle-7.3-all.zip emphasis on the gradle-7.3 and android/build.gradle buildscript { dependencies { |
This post worked for me. |
find last gradle version find last dependenci version |
i have the same warnings and the same version of SDk and NDK, but my gradle version is set to 3.6.1 and if i chaged it i've got errors. My problem here that i cant see images in my emulator when i runthe application. Please help me! |
Hello. When is running project I get this warning . What is happened here? And how to resolve this issue? thank
The text was updated successfully, but these errors were encountered: