'Compile Android app on Intel Mac for M1 Mac Emulator?

Issue is pretty simple but I think there may be no solution for this.

Essentially, I'm on an i7 MacBook and am trying to get an app from my emulator to run on the emulator of someone who's running an M1 MacBook.

I tried this at first when I thought she was on an Intel MacBook:

splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a'
        universalApk true
    }
}

But, obviously knowing she's on an M1 now, this would not help.

Is there any way for me to compile such that she can run my app on her emulator? We are getting this error when trying to install to her emulator using adb:

INSTALL_FAILED_NO_MATCHING_ABIS



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source