You could add this to Android Studio.app/Contents/Info.plist
(section <key>VMOptions</key>
).
However, I am afraid it still won’t work with the current Studio version that uses the Gralde daemon, which does not get the argument. I am still looking into that, but it’s likely not that easy to solve and I cannot think of a good work around at the moment.
Would it be an option for you to just remove all JARs from /Library/Java/Extensions/
? Or is there another application that requires them?