android minSdkVersion and default activity

Hello there,

I’m experiencing this very strange behavior when migrating an Android native project (running with older Corona versions).

If I keep minSdkVersion (build.gradle) at 14 or older, it works.
If I set minSdkVersion to 15 or higher, it complains “Cannot find default activity”. If then I manually set my activity (the default corona one) as the one to launch, it says: …CoronaApplication is not an Activity subclass or alias.

The thing is I do use Sdk v 18 API calls (BT related), and would like to be able to setup that minSdkVersion correctly.

Also, it really blows my mind!

Thanks for any insight!

Ok, there’s more to this, after closing and reopening Android Studio, I get the errors whatever the minSdkVersion I type.

So I’m stuck :frowning:

Just in case someone’s suffering this same problem - I’ve been unable to determine when exactly the “Can’t find default activity” happens, but clean / rebuild / try again, seems to fix it for a while.

Really weird.