Closed ameenvga closed 2 years ago
When I run the following command flutter build apk --split-per-abi
flutter build apk --split-per-abi
I get this error and fail the apk building process
`This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
FAILURE: Build failed with an exception.
Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.
Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1`
Used latest version 3.1.3
@Ahmadre
Duplicate of: https://github.com/Ahmadre/FlutterIconPicker/issues/40#issuecomment-1040309050
There's a lot explained why you need to add this flag because of flutter.
When I run the following command
flutter build apk --split-per-abi
I get this error and fail the apk building process
`This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
FAILURE: Build failed with an exception.
Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1102
What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.