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?
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.
There's a bug in AGP that causes the message: https://issuetracker.google.com/issues/353554169
However, if you are not compiling your own libraries and only package third-party libs it should not affect your apk size as the libs should be already stripped.
One can add *.so
to jniLibs.keepDebugSymbols
, then it won't attempt to strip these:
android {
packagingOptions {
// Unable to strip the following libraries, packaging them as they are:
jniLibs.keepDebugSymbols.add("**/libflutter.so")
}
}
© 2022 - 2024 — McMap. All rights reserved.