It's also necessary to set useLegacyPackaging to true in your app's build.gradle file. In most cases, this option is set to false by default, so you might want to set this explicitly to true to avoid any surprises.