How to create new modules in Android Studio?

Greetings to all!

There is an app, part of its functionality in a separate module. Initially, this module was created as a separate project, and from there I was collected in aar and aar then this is connected to the current application. It all worked, but then I thought I will be easier and with the module and application to work from one project and decided to move the source.
In the project, clicked on File->new->New module->Phone & Tablet module
Provide the name, everything was created, I moved the class files to the folder of the newly created module and tried to add the dependency
implementation project(":basiccore")
When trying to sync got error it cannot resolve the dependency. Not see, says I your basiccore. I searched the Internet, advised to clean the cache. (Invalidate Caches/Restart)
Made when the project is loaded got:
Compilation is not supported for the following modules: tszhcore. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

As for me, I'm still floating around is not very confident, you know, I just, most likely, something not so do.
If not difficult, please explain what and why. This is important because you do not want to mindlessly do want to understand what I was doing.

Thank you in advance!
April 3rd 20 at 18:40
1 answer
April 3rd 20 at 18:42
Do not use a particular by this wizard, but, like, Phone & Tablet module is the module the app, the app can not depend on another application. You need the module-library, Android Library vybiray in this step.
Thank you. It was easy enough. It worked - Octavia.Ada commented on April 3rd 20 at 18:45

Find more questions by tags AndroidAndroid Studio