How to reduce apk with Android App Bundle and how to build for 64-bit requirement

I have 2 questions both of them about building xamarin forms app for android for google play console, I will ask in one post

  1. I see in google play console that my apk would be smaller if I use Android App Bundle, is there an option in visual studio 2017 to do it? I also opened the apk with android studio and try to do it from there I couldn't make it

  2. Get your apps ready for the 64-bit requirement - I did the check
    I found the armeabi-v7a I don't have the arm64-v8a or x86_64, so I have 32-bit , how should I build for for 64-bit requirement , is there a way with visual studio 2017 ? what should I do?


  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭

    As for your second question:

    Your.Droid.Project -> Properties -> Android Options -> Advanced ->Supported architectures -> check the 64bit checkboxes

  • TaliAvrahamTaliAvraham USMember ✭✭

    Thank you Dirk Wilhelm, it was fast

  • TaliAvrahamTaliAvraham USMember ✭✭

    Actually since I have checked the the 64 bit checkbox, I am getting Java ran out of memory while executing , nothing helps to remove this error

  • DaddoonDaddoon FRMember ✭✭

    Did you try to go to Android Options => Advanced => change the "Max Java memory heap" or something like that ? (Sorry my Visual Studio is in French) . Put something like 4G

  • TaliAvrahamTaliAvraham USMember ✭✭

    of course I already tried all the options that the internet suggest... :'(

  • softlionsoftlion FRBeta ✭✭✭

    Set VS build option to detailed, rebuild, you will see the real error.

Sign In or Register to comment.