Merge "Limit number of methods per dex file in legacy mode." into studio-1.0-dev