I am trying to run a project that is android-library plugin in Gradle and I get this error in run configurations: "The module cannot be Android library". The project is running as regular Android plugin. Is there any way to run android library in Android studio?
You cannot run an Android library project using any tool. An Android library project is a library, not an app. You cannot generate an APK from an Android library project. Instead, you attach an Android library project to another app.
You can read more about library projects in the developer documentation.