I want to create an Android library module which contains main
and debug
packages only in the Java root. Whenever I create a new Android library module, I get the usual in the Java root which are main
, androidTest
and test
. However I want to change them to main
and debug
only.
Asked
Active
Viewed 79 times
-1

Onik
- 19,396
- 14
- 68
- 91

joe voidable
- 43
- 8
-
1Just delete them, if you are not writing tests, (you should, believe me.), it works, they are independent folders. – Akhha8 Oct 21 '21 at 16:40
-
1@Akhha8 I did what you said however I just deleted test and the androidTest,I refactored it to debug, then I deleted the file and created my own. and now everything is working perfect.I been struggling since last week Sunday. Thanks for the help. What also helped me was I switched project. – joe voidable Oct 21 '21 at 17:28
1 Answers
1
As far as I know you can't do it by means of Android Studio, but rather manually in a file browser.

Onik
- 19,396
- 14
- 68
- 91
-
-
1No need for a tutorial. It's pretty trivial. In a file browser of your choice remove, if you'd like, the `androidTest` and `test` folders. Then create the `debug` folder that has the same sub-folders structure as of the `main` folder. – Onik Oct 21 '21 at 16:40
-
@Onik it worked I did just as you said.I removed test and refactored androidTest to debug.I then deleted the file and created my own. I first switch to project from android which brought out more details. Thanks alot mate.salute – joe voidable Oct 21 '21 at 17:33