android-d8

How to resolve multiple D8 warnings: <Class X> was not found, it is required for default or static interface methods desugaring <Class Y>?

◇◆丶佛笑我妖孽 提交于 2019-12-20 10:45:43
问题 After upgrading to Android Gradle Plugin from 3.1.4 to 3.2.x I'm getting multiple warnings such as: D8: Type `com.google.gson.reflect.TypeToken` was not found, it is required for default or static interface methods desugaring of `com.google.gson.reflect.TypeToken org.springframework.http.converter.json.GsonHttpMessageConverter.getTypeToken(java.lang.reflect.Type)` D8: Type `com.squareup.okhttp.MediaType` was not found, it is required for default or static interface methods desugaring of `com

Too many dex files

烈酒焚心 提交于 2019-12-14 03:09:09
问题 When I build big multi module project, result apk contains a lot of dex files. 35 on debug version and 15 on release. Most of files has far less methods and references then 65k. Is there any way to compact dex files? I also analysed several famous applications from google, instagram, and others. They all have 4-6 almost full dexes. Nothing like we have. So looks like compaction is possible We also suspect that such big amount of dex files can slowdown application startup. Is it the case? When