Android 64k method limit error on 56k methods

前端 未结 5 917
攒了一身酷
攒了一身酷 2021-01-06 23:42

I\'m receiving this error in my android project:

Unable to execute dex: method ID not in [0, 0xffff]: 65536
Conversion to Dalvik format failed: Unable to exe         


        
5条回答
  •  时光取名叫无心
    2021-01-07 00:32

    You can now only import the pieces of Google Play Services that you use. This saves a lot of methods.

    If you only use GCM, then you only need com.google.android.gms:play-services-gcm:7.5.0

    Look here for the list: https://developers.google.com/android/guides/setup

提交回复
热议问题