Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio not detecting my module

I cloned my repo and now Android studio (1.3.1) is having hard time detecting my module 'app'

It is not showing any module in edit configuration(as in image below).

enter image description here


It's already defined in 'Settings.gradle'

include ':app'

I tried importing this app module but it says project already contains module with this name

Tried other solutions too. Stuck here.

Note: This repo doesn't have .iml file of project.

like image 456
AskQ Avatar asked Apr 06 '26 19:04

AskQ


2 Answers

Had a similar issue with Android Studio 3.5.3.

Deleting .iml and local.properties files along with .idea and .gradle folders before reopening the project fixed my issue.

like image 87
Slion Avatar answered Apr 11 '26 01:04

Slion


Different SDK installation worked for me.

How I came to know?:
(Meanwhile 2 days passed in this issue, I tried all possible solutions like adding facets, adding modules etc. (I came to know it is working in other collegue's machine ) But they didn't work, So last option for me was fresh installation of Android Studio. So I...)

1. Installed Android Studio 2.2.3 with different sdk location unknowingly(Let's say loc2).
2. It was working, later I made batch update to 2.3.2. After update, I chose project location as sdk location (Lets say loc1 ). This time it din't work and I got same error. This was a moment when switching to loc2 worked!!

like image 29
AskQ Avatar answered Apr 11 '26 02:04

AskQ