0

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.

2
  • 1
    Just delete them, if you are not writing tests, (you should, believe me.), it works, they are independent folders. Commented Oct 21, 2021 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. Commented Oct 21, 2021 at 17:28

1 Answer 1

1

As far as I know you can't do it by means of Android Studio, but rather manually in a file browser.

Sign up to request clarification or add additional context in comments.

3 Comments

is there any tutorial maybe on youtube that I can learn from?
No 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 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.