Can't make APK without compiled .so

I was having the same issue.

Everything was packaging perfectly but when I was trying to reduce my package size, I turned some settings on and off.
Right after that I got the " Can’t make an APK without the compiled .so" error.

**What worked for me:

  1. I created a new empty project
  2. Used Migration tool to migrate my game content folder to the newly created project
  3. For input mappings, I exported the file by clicking export button in Project Settings-Inout->Export
  4. Imported the input mappings in new project using import button in Project Settings-Inout->Import**

After that packaging worked for me.

But again trying reducing the packaging size, I turned off some plugins like Oculus Plugin etc. which my game doesn’t use, and the " Can’t make an APK without the compiled .so" error came again.

So, I am assuming that this error is related to plugins used and project settings because I have migrated my project about 3-4 times after getting the error and after each migration, I can package my game but changing some plugins causes the error again.