You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
for this libandroidlame.so 16kb page support required #373
@YashCreole - Can I replace the implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1' with implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'. in node_modules>react-native-compressor>android>build.gradle?
Can I skip installing the npx patch-package react-native-compressor because I am a single developer working on my app?
Or I need to install the npx patch-package react-native-compressor?
Yes you're right. You need to change that implementation ... line and after that check in your package.json file that you've the patch-package installed or not. If not then first install the patch package from npm and then apply the patch like this in you project's root foder's terminal with below command.
I have already installed version v1.13.0 in my project.
Can I proceed with this step in my project?
Replace the implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1' with implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'. in node_modules>react-native-compressor>android>build.gradle.
Can I skip installing the npx patch-package react-native-compressor (no need to install this), right?
And Search for the line implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1'
And Replace it with the line implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'
after this save the file and apply patch of that file with below command.
npx patch-package react-native-compressor
This solution worked for us. With this solution we had to add tools:replace="android:allowBackup" to the AndroidManifest.xml
After applying this patch, now google play console is showing my app as 16KB compatible.
I'm using pnpm and was struggling with some of the other solutions I saw. This is what worked for me.
I made a postinstall bash script to make the necessary adjustments.
#!/bin/bash
# Script to fix the 16KB page size issue in react-native-compressor
# This replaces AndroidLame-kotlin with TAndroidLame to avoid the 16KB page size limit
set -e
echo "Applying 16KB page size fix for react-native-compressor..."
# Path to the build.gradle file
BUILD_GRADLE_PATH="node_modules/react-native-compressor/android/build.gradle"
# Check if the file exists
if [ ! -f "$BUILD_GRADLE_PATH" ]; then
echo "Error: $BUILD_GRADLE_PATH not found"
echo "Make sure react-native-compressor is installed"
exit 1
fi
# Check if the fix is already applied
if grep -q "com.github.kaushik-naik:TAndroidLame:a485052f28" "$BUILD_GRADLE_PATH"; then
echo "Fix already applied - TAndroidLame is already being used"
exit 0
fi
# Check if the problematic dependency exists
if ! grep -q "com.github.banketree:AndroidLame-kotlin:v0.0.1" "$BUILD_GRADLE_PATH"; then
echo "Warning: Expected AndroidLame-kotlin dependency not found"
echo "The file might have been modified or the version changed"
echo "Current content around Lame dependencies:"
grep -A 2 -B 2 "Lame" "$BUILD_GRADLE_PATH" || echo "No Lame dependencies found"
exit 1
fi
# Apply the fix
echo "Replacing AndroidLame-kotlin with TAndroidLame..."
# Use sed to replace the dependency (works on both macOS and Linux)
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
sed -i '' 's/com.github.banketree:AndroidLame-kotlin:v0.0.1/com.github.kaushik-naik:TAndroidLame:a485052f28/' "$BUILD_GRADLE_PATH"
else
# Linux
sed -i 's/com.github.banketree:AndroidLame-kotlin:v0.0.1/com.github.kaushik-naik:TAndroidLame:a485052f28/' "$BUILD_GRADLE_PATH"
fi
# Verify the fix was applied
if grep -q "com.github.kaushik-naik:TAndroidLame:a485052f28" "$BUILD_GRADLE_PATH"; then
echo "Fix applied successfully!"
echo "Updated dependency:"
grep -A 2 -B 2 "TAndroidLame" "$BUILD_GRADLE_PATH"
else
echo "Error: Fix failed to apply"
exit 1
fi
echo "16KB page size fix completed!"
I'm using pnpm and was struggling with some of the other solutions I saw. This is what worked for me.
I made a postinstall bash script to make the necessary adjustments.
#!/bin/bash
# Script to fix the 16KB page size issue in react-native-compressor
# This replaces AndroidLame-kotlin with TAndroidLame to avoid the 16KB page size limit
set -e
echo "Applying 16KB page size fix for react-native-compressor..."
# Path to the build.gradle file
BUILD_GRADLE_PATH="node_modules/react-native-compressor/android/build.gradle"
# Check if the file exists
if [ ! -f "$BUILD_GRADLE_PATH" ]; then
echo "Error: $BUILD_GRADLE_PATH not found"
echo "Make sure react-native-compressor is installed"
exit 1
fi
# Check if the fix is already applied
if grep -q "com.github.kaushik-naik:TAndroidLame:a485052f28" "$BUILD_GRADLE_PATH"; then
echo "Fix already applied - TAndroidLame is already being used"
exit 0
fi
# Check if the problematic dependency exists
if ! grep -q "com.github.banketree:AndroidLame-kotlin:v0.0.1" "$BUILD_GRADLE_PATH"; then
echo "Warning: Expected AndroidLame-kotlin dependency not found"
echo "The file might have been modified or the version changed"
echo "Current content around Lame dependencies:"
grep -A 2 -B 2 "Lame" "$BUILD_GRADLE_PATH" || echo "No Lame dependencies found"
exit 1
fi
# Apply the fix
echo "Replacing AndroidLame-kotlin with TAndroidLame..."
# Use sed to replace the dependency (works on both macOS and Linux)
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
sed -i '' 's/com.github.banketree:AndroidLame-kotlin:v0.0.1/com.github.kaushik-naik:TAndroidLame:a485052f28/' "$BUILD_GRADLE_PATH"
else
# Linux
sed -i 's/com.github.banketree:AndroidLame-kotlin:v0.0.1/com.github.kaushik-naik:TAndroidLame:a485052f28/' "$BUILD_GRADLE_PATH"
fi
# Verify the fix was applied
if grep -q "com.github.kaushik-naik:TAndroidLame:a485052f28" "$BUILD_GRADLE_PATH"; then
echo "Fix applied successfully!"
echo "Updated dependency:"
grep -A 2 -B 2 "TAndroidLame" "$BUILD_GRADLE_PATH"
else
echo "Error: Fix failed to apply"
exit 1
fi
echo "16KB page size fix completed!"
Activity
github-actions commentedon Sep 27, 2025
👋 @sandeep14
Thanks for opening your issue here! If you find this package useful hit the star🌟!
mGallee commentedon Sep 28, 2025
We are experiencing the same issue in our app since we added this package.
Volps-deliverThat commentedon Sep 30, 2025
Same problem here
nik098 commentedon Sep 30, 2025
Waiting for this too.
jimmywu-boxworks commentedon Oct 1, 2025
+1
karanMoontechnolabs commentedon Oct 3, 2025
same problem , Waiting for this too.
AndMorMat commentedon Oct 3, 2025
Same problem here, waiting for this
C0rren commentedon Oct 6, 2025
+1
YashCreole commentedon Oct 7, 2025
I'm also facing the same issue for this libandroidlame.so (16KB warning).
Waiting for the solution.
LCseniordev commentedon Oct 8, 2025
+1
hashhirr commentedon Oct 8, 2025
+1
YashCreole commentedon Oct 8, 2025
Hey, Guys
I found the solution of this.
Go to the below path.
node_modules/react-native-compressor/android/build.gradleAnd Search for the line
implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1'And Replace it with the line
implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'after this save the file and apply patch of that file with below command.
npx patch-package react-native-compressorgkasireddy202 commentedon Oct 13, 2025
@YashCreole - Can I replace the implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1' with implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'. in node_modules>react-native-compressor>android>build.gradle?
Can I skip installing the npx patch-package react-native-compressor because I am a single developer working on my app?
Or I need to install the npx patch-package react-native-compressor?
YashCreole commentedon Oct 13, 2025
Hi, @gkasireddy202
Yes you're right. You need to change that
implementation ...line and after that check in your package.json file that you've thepatch-packageinstalled or not. If not then first install the patch package from npm and then apply the patch like this in you project's root foder's terminal with below command.npx patch-package react-native-compressorThank you.
gkasireddy202 commentedon Oct 13, 2025
@YashCreole - Thanks for your reply.
I have already installed version v1.13.0 in my project.
Can I proceed with this step in my project?
Replace the implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1' with implementation 'com.github.kaushik-naik:TAndroidLame:277c2ab4b0'. in node_modules>react-native-compressor>android>build.gradle.
Can I skip installing the npx patch-package react-native-compressor (no need to install this), right?
15 remaining items
PhucDamMinh commentedon Oct 24, 2025
Any updates on this issue, i've ran into the same problem.
mahesh7325 commentedon Oct 24, 2025
This solution worked for us. With this solution we had to add tools:replace="android:allowBackup" to the AndroidManifest.xml
After applying this patch, now google play console is showing my app as 16KB compatible.
codetelo commentedon Oct 24, 2025
I'm using pnpm and was struggling with some of the other solutions I saw. This is what worked for me.
I made a postinstall bash script to make the necessary adjustments.
Then in my
package.json, I just added:Pugavkomm commentedon Oct 27, 2025
Why not use patch-package?
codetelo commentedon Oct 27, 2025
I did attempt using patch-package and also pnpm's patch, but neither worked for me. This was the only one that worked and it's a pretty easy add.
nik098 commentedon Oct 29, 2025
Any permanent fix for this? Deadline is a day away for Google play to stop accepting the app.
abhishek-auw commentedon Oct 29, 2025
Send request for extension.
AndrianarivoAlpha commentedon Oct 29, 2025
For Expo project add this into app.json/plugins
[ "expo-build-properties", { "android": { "buildArchs": ["arm64-v8a", "armeabi-v7a"], } ],
Thank me later!
AliQureshi24 commentedon Nov 5, 2025
Hey Guys
For Expo project I add this into app.json/plugins
This helped me resolve the issue
Santhosh-Umapathi commentedon Nov 11, 2025
For expo projects
oeddyo commentedon Dec 18, 2025
hope the patch can be merged soon...
aravind3566 commentedon Dec 19, 2025
+1
danchiche commentedon Dec 29, 2025
I just added
in my app.config.js
and it works
Claude AI told me this configuration just dissallow to use MP3 compression on x86_64 android device
Do you know if the they correct the bug on future x86_64 plateform ?
numandev1 commentedon Jan 9, 2026
released in https://github.com/numandev1/react-native-compressor/releases/tag/v1.14.0