After renaming module in Android Studio i get error Project SDK is not defined.
How can I rename module from app to my-name whit out getting error.
The problem is with renaming, I believe.
I use Shift+Alt+R to rename the module. If I rename the directory I get this error. If I rename module, after restart there are no previous changes. the problem is not in setting SDK, the problem is that classes are no longer in package. The AS doesn't know that this module is android app because there is also previously created
To raname a module, go to settings.gradle and rename the module to your new name. Then close Android Studio, and rename the folder using File Explorer. Now reopen Android studio and your module name will be updated.
Simply renaming using the refactor tool does not do the job.
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