Actually there is a project structure

  • AndroidManifest.xml
  • assets
  • ibs
  • res
  • src
  • any files

When importing a project into the same Android Studio, she herself adds gradle and rework the structure into the form:

  • app
    • libs
    • src
      • main
        • assets
        • java
        • res
        • AndriodManifest.xml
      • build.gradle
  • any files

How to use gradle or any other way to change the structure of the project without using the same import to the studio?

Is there any console command for gradle, so that if you add it to the project via the terminal, would you be able to rebuild the project? Or something that would do it.

  • one
    Gradle in itself knows nothing about it and is not able to do anything like that. This is all com.android.tools.build:gradle plugin does, dig in this direction. - Eugene Krivenja
  • There is information on how to replace the source directory for java. - Maxim Drobyshev
  • But in general, why do not you like the generally accepted standard? - Maxim Drobyshev

0