Open sewonist opened 2 years ago
Hi
You can make the Unity project load itself all the necessary components when it starts, then the file will be small
or try to do it with the capabilities of android, which allows you to load resources into the executable module. but I have not been able to do it myself yet, there is no time
21 июля 2022 г., в 13:07, sewonist @.***> написал(а):
Hi Guys.
I've success to build with React and Unity for Android. It has any no problems. When I upload my app bundle file, there is error that Your App Bundle contains the following configurations where the initial install would exceed the maximum size of 150 MB. My app bundle size is 310 MB.
https://user-images.githubusercontent.com/352759/180186213-0bf28254-e885-4639-b8ec-7710fc1403ec.png Now I try to split aab file like below option.
https://user-images.githubusercontent.com/352759/180188391-f2200737-3f54-4d01-9566-4114f6863de7.png I want to make app-release.aab file under 150 MB and extra assets from Android Studio. Please give me any idea.
Thanks!
— Reply to this email directly, view it on GitHub https://github.com/azesmway/react-native-unity/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADULPPZRFRQQ7HCE7BET5VTVVEOM3ANCNFSM54HBKNRQ. You are receiving this because you are subscribed to this thread.
Thanks for reply.
In my case, I've made Unity contents with Mediapipe. Mediapipe has 150MB library and 100MB data files. I can't separate these library. As you mention, I will try to all the components itself. But I'm not sure is it possible. Fingers cross~
Thanks for reply.
In my case, I've made Unity contents with Mediapipe. Mediapipe has 150MB library and 100MB data files. I can't separate these library. As you mention, I will try to all the components itself. But I'm not sure is it possible. Fingers cross~
Am glad to hear Mediapipe in Unity bundled together at the very least works in this environment, did it work for you on both Android and IOS? Or are you just working on Android?
@sewonist I would suggest to reduce the Mediapipe plugin size (unless you are using absolutely everything in the Mediapipe samples e.g. Pose, Holistic, Face tracking etc.), you can build Mediapipe with only the solutions you require e.g. Pose only using this command - https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#:~:text=%23%20Specify%20required%20solutions%0Apython%20build.py%20build%20%2D%2Ddesktop%20gpu%20%2D%2Dsolutions%20face_mesh%20hands%20pose%20%2Dvv
Example for pose: python build.py build --desktop gpu --solutions pose -vv
Also, make use of the Editor Logs from Unity Console shown below where you can scroll through to see what assets are in the build - often if I am using Mediapipe with the Bootstrap Asset Loader type set to 'Streaming Assets', the bytes files for included solutions are imported twice on build - once from the /Users/Shared/Unity_Projects/ReactNativeUnity/example/unity/source/Packages/com.github.homuler.mediapipe/Runtime/Resources folder and also the included bytes are copied from Streaming assets which leads to the pose.byes or other bytes files being imported into the app twice!
In my example, using just Pose solution only built, and also using --linkopt=-s
to strip debug symbols in the android build (see below) and Unity Player Settings Engine Stripping > High, the .apk file size is 40mb for me.
# Omit all symbol information.
# This can significantly reduce the library size.
python build.py build --android arm64 --linkopt=-s -vv
@ROBYER1 Thank you for reply.
Am glad to hear Mediapipe in Unity bundled together at the very least works in this environment, did it work for you on both Android and IOS? Or are you just working on Android?
Yes. It work both Android and iOS. I don't have any problem with working.
@sewonist I would suggest to reduce the Mediapipe plugin size (unless you are using absolutely everything in the Mediapipe samples e.g. Pose, Holistic, Face tracking etc.), you can build Mediapipe with only the solutions you require e.g. Pose only using this command
I try to this way and it works for me. Most problem is big size of mediapipe_android.aar
. It is 150MB normally. When I build with --linkopt=-s
option. I can get just 14MB file. Fortunately, it works without issue.
+1 i same, i need tutorial
Hi Guys.
I've success to build with React and Unity for Android. It has any no problems. When I upload my app bundle file, there is error that
Your App Bundle contains the following configurations where the initial install would exceed the maximum size of 150 MB
. My app bundle size is 310 MB.Now I try to split aab file like below option.
I want to make
app-release.aab
file under 150 MB and extra assets from Android Studio. Please give me any idea.Thanks!