Can't upload Android app to device (stale dexed jars)

后端 未结 16 531
别跟我提以往
别跟我提以往 2020-12-05 17:11

I am using Android Studio to develop this app, and today when I tried to upload it to my device to test I got a popup window saying:

Installation fail

16条回答
  •  天命终不由人
    2020-12-05 17:24

    I discovered that the dex file was getting larger than the buffer, even though it contained less than 64k methods. Then I enabled ProGuard and it helped a lot reducing the dex file size.

    THe application dex-method-counts helps a lot to debug your dex file, by checking not only the number of methods, but to what package they belong

提交回复
热议问题