Android: my application is too large and gives “Unable to execute dex: method ID not in [0, 0xffff]: 65536”?

前端 未结 8 1982
慢半拍i
慢半拍i 2020-11-27 04:52

I am trying to integrate my application with Box, Dropbox, and Google Drive. All 3 of these services require a number of 3rd party jars. Additionally, my application alrea

8条回答
  •  醉梦人生
    2020-11-27 05:00

    See vm/LinearAlloc.c and you can find this code: (5MiB under Android 2.3.3, 8MiB after Android 4.0 as my investigation)

    #define DEFAULT_MAX_LENGTH (5*1024*1024)

    ...

    LinearAllocHdr* pHdr;

    ...

    pHdr->mapLength = DEFAULT_MAX_LENGTH;

    I suppose that the 'Facebook fix' is editing this memory by using native C pointer. IMHO LinearAlloc problem and this method ID problem is different thing.

提交回复
热议问题