flutterdartgradle

Unable to strip the following libraries, packaging them as they are: libflutter.so


I saw this as part of the logs generated by Gradle when building an app in release mode in flutter. Does this have any side effects on the overall app?


Solution

  • libflutter.so is already the compiled form of flutter framework and other native scripts needed to run your app.

    More specifically *.so files includes Dart language dependency, skia engine, flutter framework, platform related native code etc.

    So their is no need to break them and compile them as they are already compiled. Hence it shows the message that cannot strip them packaging them as they are. This doesn't have any side effects. (*.so files are compiled form of code that are designed to run on linux distributions.) Android is also a linux distribution.

    Hence there is no side effect on the app which you are building.