I am getting a 'Module not specified' error in my run config. I have no module showing in the drop down yet I can see my module no probs. The issue came about when I refactored my module name, changed the settings.gradle to new name.
Now when I go to project structure and select my module nothing shows in the screen, not even an error.
I'm not 100% sure, but the icon beside my module looks like a folder with a cup and not a folder with a phone.
My exact steps -
Modules. A module is a collection of source files and build settings that allow you to divide your project into discrete units of functionality. Your project can have one or many modules, and one module may use another module as a dependency. You can independently build, test, and debug each module.
app
module through GradleIn the root folder of your project, open the settings.gradle
file for editing.
Cut line include ':app'
from the file.
On Android Studio, click on the File
Menu, and select Sync Project with Gradle files
.
After synchronisation, paste back line include ':app'
to the settings.gradle
file.
Re-run Sync Project with Gradle files
again.
never mind, i changed the name in settings.gradle and synced and then changed it back and synced again and it inexplicably worked this time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With