New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App build has warning issues "Unable to strip the following libraries" #32857
Comments
Hi, npx react-native init Test Works fast and opens the app but gives that warning:
My react-native info is: System: |
If you are using Gradle build tools version 4 or higher, adding android:extractNativeLibs="true" to application as per android documentation, may solve the issue. https://developer.android.com/studio/releases/gradle-plugin#extractNativeLibs |
@thejadasari This will not resolve the "Unable to strip the libraries error". This will help to reduce the build apk size. |
I'm on an existing app and I have the same issue when I migrated from react-native 0.64 to 0.67.3.
In addition, I'm trying to migrate to hermes engine (following: https://reactnative.dev/docs/hermes) and the I guess it's related to |
Same predicament, been struggling mightily with this for a week. Our libs would not be stripped and caused an oversized base.zip file in our build files (800 mb!), which causes node to choke. What has mostly helped is adding the ndk.dir property to local.properties and pointing it to |
I'm still getting this issue after after following the NDK steps |
add this to your app build gradle
|
Same issue here |
用命令--info 查看原因,一般是ndkVersion 不匹配,strip tools找不到 |
Description
When I build the simple app only shows "Hello world", I've got the following warning, and the size of my app reaches 32MB.
I used the build command
./gradlew assembleRelease
and also used Android Studio. I got the same warning in both cases.Android Studio has installed the NDK(side by side) to strip these packages.
How can I fix this issue?
Version
0.66.4
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.18362
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 1.97 GB / 11.85 GB
Binaries:
Node: 14.17.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.14 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 4.2.0.0 AI-202.7660.26.42.7351085
Visual Studio: Not Found
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.4 => 0.66.4
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I created the app with this command.
npx react-native init sample
I installed react-native-geolocation-service.
I build the app with
./gradlew assembleRelease
But I've got a warning.
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: