“trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option.” when building Android project
问题 I hit this error and found no hits for the error message, so I thought I'd share the solution I came up with to save anyone else facing the problem repeating my work. When writing a new Android library (apklib) for use in a (large) application, I'm getting the following error during dexing when I add my new project as a dependency: trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option. References by package: <...long list of packages with