Hello everyone,
I hope you guys doing well.
Whenever I am trying to build the user mobile app I am getting this issue.
The web is successfully built but facing problems with the mobile app.
I am using Flutter 3.7.7 stable version as the author described.
Building without sound null safety
Dart 3 will only support sound null safety, see
https://dart.dev/null-safety
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/arkobd/.pub-cache/hosted/pub.dev/firebase_messaging-14.5.0/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: /Users/arkobd/.pub-cache/hosted/pub.dev/share_plus-6.3.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (19, 16): Redeclaration: Share
e: /Users/arkobd/.pub-cache/hosted/pub.dev/share_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (19, 16): Redeclaration: Share
Target aot_android_asset_bundle failed: IconTreeShakerException: Font subsetting failed with exit code -9.
To disable icon tree shaking, pass --no-tree-shake-icons to the requested flutter build command
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':share_plus:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* Where:
Script '/Users/arkobd/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/arkobd/development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at
https://help.gradle.org
BUILD FAILED in 1m 46s
I've deleted the pubspec.lock file then tried again but no luck.
Can you guys please help me to solve this?