Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
生活随笔
收集整理的這篇文章主要介紹了
Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Android studio 打包時報錯如下:
Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
# methods: 66585 > 65536
Message{kind=ERROR, text=Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
# methods: 66585 > 65536, sources=[Unknown source file], tool name=Optional.of(D8)}
?
解決方法:
在build.gradle下的
defaultConfig下加入 multiDexEnabled true?
如:
defaultConfig {applicationId "com.tianxin.mapclient.liteapp"minSdkVersion 15targetSdkVersion 27versionCode 19versionName "19.0"multiDexEnabled truejavaCompileOptions {annotationProcessorOptions { includeCompileClasspath = true }}ndk {abiFilters "armeabi", "x86", "x86_64", "mips64", "mips"}manifestPlaceholders = [JPUSH_PKGNAME : applicationId,JPUSH_APPKEY : "880fe88703ab92260d7d42ca", //JPush上注冊的包名對應的appkey.JPUSH_CHANNEL : "developer-default", //暫時填寫默認值即可.] }總結
以上是生活随笔為你收集整理的Cannot fit requested classes in a single dex file. Try supplying a main-dex list.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: “易图购”数码商城App设计与实现
- 下一篇: Oracle查看IP操作,Oracle