Skip to main content
Participant
February 28, 2017
Answered

multiDexKeepFile

  • February 28, 2017
  • 1 reply
  • 1555 views

Hello,

Since we are now able to multidex Android apps with Air 25, is there a way to specify a multiDexKeepFile to declare classes to be in the main dex file? Thanks!

This topic has been closed for replies.
Correct answer Rohit_Kumar2

Hey,

You can find a keep file in the AIRSDK at the location {AIR_SDK}/lib/android/lib/multidex-1.0.1/addToPrimaryDex.keep

Here, you can add the classes to be added in the primary dex file. Please let us know if it solves your problem.

Thanks,

Rohit

Adobe AIR Team

1 reply

Rohit_Kumar2
Adobe Employee
Rohit_Kumar2Correct answer
Adobe Employee
March 1, 2017

Hey,

You can find a keep file in the AIRSDK at the location {AIR_SDK}/lib/android/lib/multidex-1.0.1/addToPrimaryDex.keep

Here, you can add the classes to be added in the primary dex file. Please let us know if it solves your problem.

Thanks,

Rohit

Adobe AIR Team

Participant
March 2, 2017

Hello,

I see the file, but none of my additions to the keep file seem to affect the dex files. Do I need to build with a specific setting, or is the keep file always used when creating the dexs? If it's always used, do you have any thoughts on what I might be doing wrong. Let me know if I can provide you with any additional info.

Thanks!

Rohit_Kumar2
Adobe Employee
Adobe Employee
March 2, 2017

Hey,

This keep file is always used.

Which classes are you trying to add to the keep file? Can you share more details on the classes, as in from where the classes are getting picked up?

Are you sure you have prepended the correct package structures with the class names?

Thanks,

Rohit

Adobe AIR Team