android-multidex

Too many field references: 70613; max is 65536

∥☆過路亽.° 提交于 2019-11-26 01:49:55
问题 My project uses these plugins: OneSignal GooglePlayServices Adjust Google Analytics Unity IAP Facebook SDK Those plugins are used in almost every project. But I am over field references count This is my .aar file list What should I do to decrease reference count? 回答1: So What should i do to decrease reference count ? You have so many plugins with many functions/fields. There is a limit when building this from Unity's Editor and you have reached that limit. To decrease reference count, you

The number of method references in a .dex file cannot exceed 64k API 17

五迷三道 提交于 2019-11-26 01:14:59
问题 I am building an app with SugarORM Library but when I try to build the project for API 17 (didn\'t check for others) it shows build error. Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2330Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72330Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72330Library UP-TO-DATE

Too many field references: 70613; max is 65536

 ̄綄美尐妖づ 提交于 2019-11-25 22:36:48
My project uses these plugins: OneSignal GooglePlayServices Adjust Google Analytics Unity IAP Facebook SDK Those plugins are used in almost every project. But I am over field references count This is my .aar file list What should I do to decrease reference count? So What should i do to decrease reference count ? You have so many plugins with many functions/fields. There is a limit when building this from Unity's Editor and you have reached that limit. To decrease reference count, you have to delete some these plugins but I am sure that you need them and deletion may not be the appropriate

How to enable multidexing with the new Android Multidex support library

谁说胖子不能爱 提交于 2019-11-25 21:48:06
问题 I want to use the new Multidex support library to break the method limit for one of my apps. With Android Lollipop Google introduced a multidex support library that makes it easy to multidex. What steps are needed to use this library and to build my app with multidex support? 回答1: Edit: Android 5.0 (API level 21) and higher uses ART which natively supports multidexing. Therefore, if your minSdkVersion is 21 or higher, the multidex support library is not needed. Modify your build.gradle :