samples icon indicating copy to clipboard operation
samples copied to clipboard

I am using the Game Template but during run there is some error occurs

Open moshOntong-IT opened this issue 3 years ago • 2 comments

I encountered some minor problem when I am starting to run my flutter game project using the Game template. "Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01" image

Although, it build and run successfully.

moshOntong-IT avatar Aug 04 '22 16:08 moshOntong-IT

What are the reproduction steps for this issue?

/cc @filiph

domesticmouse avatar Aug 04 '22 21:08 domesticmouse

I didnt change the game template I just clone and run it and I show this minor error on debug log.

moshOntong-IT avatar Aug 05 '22 10:08 moshOntong-IT

Hi there, I'm afraid this is par for the course in mobile development. Some of the plugins we're using have not yet upgraded to the latest APIs, and so we're seeing these warnings.

For the record, the warnings above have disappeared by now (I do remember seeing them, too) because the underlying plugins have upgraded.

Currently, I'm seeing these, though:

Note: /Users/filiph/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.0.1/android/src/main/java/io/flutter/plugins/googlemobileads/FlutterMobileAdsWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Again, this is something that's to be expected for any mobile app (Flutter or otherwise) that pulls in several 3rd party SDKs. (In the game_template's case, it's ads, audio, Firebase, Crashlytics, Games Services and in-app purchases.)

The fact that the IDEs show these warnings in bright red colors doesn't help. My heart stops every time I see them, before I remember what those are (i.e. "just" warnings, not errors).

I'm going to close this issue. If anyone feels strongly about this, it might be useful to file an issue to the flutter/flutter repo. Maybe we can at least make these warnings show in less aggressive colors?

filiph avatar Oct 06 '22 08:10 filiph