Android Question inside the object\....\res\values-xx where x is a lang

Discussion in 'Android Questions' started by chompina, Apr 21, 2018.

  1. chompina

    chompina Member Licensed User

    Hi.

    Exploring all folders inside the objects, i can see some folders with names:

    values-in
    values-it
    values-kk
    values-iw
    values-ja

    and other folders

    locations is Objects\bin\extra\resX\res , where X is a number, res1,res2,res3 etc.

    there is a way to only left some specific language folder, like 'values', 'values-es', 'values-en'...

    to reduce size apk file.

    or is important folders that cannot be deleted?


    thanks

    see screenshots

    any01.jpg any02.jpg any03.jpg
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Deleting these folders will not help to reduce the APK size as they will be created again during compilation. These are resources belonging to the referenced AAR libraries. Probably from Google Play Services.
     
  3. chompina

    chompina Member Licensed User

    thanks for response.

    this AAR libraries can be edited to remove those lines, then during compilation no included some mentioned folders?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Not really.
     
    chompina likes this.
  5. chompina

    chompina Member Licensed User

    if you add a option to run a cmd or program after 'copying library resources', to run a script or program that detect (from previous list) the folders or files that i want to hold, or the list of folder or files that i want to remove.

    i guess it wil work.

    finding way to reduce 0.5mb or 1mb or more. :)

    thank you.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    What I mean with "not really" is that this is not recommended as you can easily break something and it will be very difficult to detect. If you like you can delete the resources from inside the AAR file.
    The result is that you will work hard and make your app less stable.
     
    chompina likes this.
  7. chompina

    chompina Member Licensed User

    great..
    thank you.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice