-
Notifications
You must be signed in to change notification settings - Fork 388
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 size is too big #340
Comments
you can use abifilters |
Hello sir, I tried abi filters, it only reduce 40mb. app size is still in 115mb. Thank you! |
In android native, I tried abiFilters and it reduced size exceptionally
|
Also can reduce the size using this filter defaultConfig { |
@LichKing-2234 @good-good-study |
Any update on this issue? |
Hey, i have some solution for your guys.. Before finding the tricky, im very desperate with this plugin while reducing the app size.
dependencies {
if (isDev(project)) {
api fileTree(dir: "libs", include: ["*.jar", "*.aar"])
} else {
// api 'io.agora.rtc:full-sdk:3.7.0.3' (Comment this)
api 'io.agora.rtc:iris-rtc:3.7.0.3'
}
}
dependencies {
if (isDev(project)) {
api fileTree(dir: "libs", include: ["*.jar", "*.aar"])
} else {
// api 'io.agora.rtc:full-sdk:3.7.0.3'
api 'io.agora.rtc:iris-rtc:3.7.0.3'
}
// implementation 'io.agora.rtc:full-screen-sharing:3.7.0.3'
implementation 'io.agora.rtc:full-rtc-basic:3.7.0.3'
implementation 'io.agora.rtc:full-ains:3.6.2'
implementation 'io.agora.rtc:full-jnd:3.7.0.3'
implementation 'io.agora.rtc:full-full-audio-format:3.6.2'
implementation "io.agora.rtc:full-super-resolution:3.7.0.3"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${safeExtGet('kotlin_version', "$agora_rtc_engine_kt_version")}"
}
Since you're editing the package cache it will be effect with other project. For prevent this happen, forking the package git and add manually inside pubsec.yaml |
@RasyidMF Hello my friend, first thanks for your solution, it reduced about 20 MB of my app and I have a question: you told that your project only need the Video & Audio without any other features. |
Check the table of documentation Click here. implementation 'io.agora.rtc:full-full-audio-format:3.6.2' // << Remove this code |
@RasyidMF
and commenting another codes like below what will happen? does it affect on my performance of video quality or video calling? please tell me about the side effets if i removing these lines in below:
because when i use just the first line it gives me 40mb apk and with all of your codes it give 58mb.(even i am using :
`buildTypes {
` thanks a lot, your solution helped me a lot🙏🙏 |
@A-Eric-J any solutions or progress ? I just need to implement the video sdk and the app bundle size comes 130MB. |
@RasyidMF I did commented above dependency and my app crashys while i join the channel |
You can also use
|
I have implemented the above solution but still only reduced 40mb. Is there any other solution ? |
You can download the .so files at runtime in Android, I dont have specific way how to do it, but if you try and succeed please let me know too @karanpatel2329 and @LichKing-2234 I will look at your dependency structure and will let you know as my app was crashing with this custom dependency implementation |
Is there any way to download the .so files at runtime in Android, because i have code written in flutter. |
IOS doesn't need so files so if platform is android you can download those files and agora has method to specify so files path (I have looked into the docs), and it will take so files from there to run. |
@LichKing-2234 Have you used the latest sdk version 6.1.0 ?, I am getting error while compiling with these changes in my code |
@bhavykoshti I think you can raise a new issue for your case. |
@bhavykoshti if you find a solution for this issue, please revert! |
Yeah but still looking for the ios solution |
is there an Ios solution |
add this following code in build.gradle module on android
|
Please check #1214 |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue. |
Android apk size is become larger after adding agora package also i specified the target platform.
before adding agora package, app size is 80mb
after adding agora package, app size is >165mb
The text was updated successfully, but these errors were encountered: