Android is worse — it limits number of methods to 65535 (but has hacks to workaround it) https://developer.android.com/studio/build/multidex.html
65535 interfaces ought to be enough for anybody
11–20 of 82 posts
Re: 65535 interfaces ought to be enough for anybody
#12Re: 65535 interfaces ought to be enough for anybody
#13Android is worse — it limits number of methods to 65535 (but has hacks to workaround it) https://developer.android.com/studio/build/multidex.html
A coworker mentioned that multidexing also take ages and uses huge amounts of memory.
Re: 65535 interfaces ought to be enough for anybody
#14Any time you have a 16-bit count, it won't be enough. It's a dangerous size...
Re: 65535 interfaces ought to be enough for anybody
#15Earlier quoted context omitted.
A coworker mentioned that multidexing also take ages and uses huge amounts of memory.
Are there any legitimate use cases for that many methods?
Re: 65535 interfaces ought to be enough for anybody
#16Earlier quoted context omitted.
A coworker mentioned that multidexing also take ages and uses huge amounts of memory.
Are there any legitimate use cases for that many methods?
I've also heard that scala apps on Android can sometimes hit the limit, because pulling in the scala stdlib greatly bloats the method count.
Re: 65535 interfaces ought to be enough for anybody
#17Earlier quoted context omitted.
Are there any legitimate use cases for that many methods?
IIRC the Facebook app had many more than that at one point, and had to use multi-dexing. Not sure if that's still the case. I've also heard that scala apps on Android can sometimes hit the limit, because pulling in the scala stdlib greatly bloats the method count.
Re: 65535 interfaces ought to be enough for anybody
#18Re: 65535 interfaces ought to be enough for anybody
#19Android is worse — it limits number of methods to 65535 (but has hacks to workaround it) https://developer.android.com/studio/build/multidex.html
A coworker mentioned that multidexing also take ages and uses huge amounts of memory.
https://developer.android.com/studio/build/multidex.html
It's really not that bad, It only gets a little squirrely if you're trying to support super old android versions.