From the course: Distributing Your Android App for Kotlin Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Clean up your code

Clean up your code - Android Tutorial

From the course: Distributing Your Android App for Kotlin Developers

Start my 1-month free trial

Clean up your code

- [Illustrator] Before packaging up your application for distribution, it is generally a good idea to go back through all of the code and clean it up. Instead of manually scanning all of the files for things to fix though, there is a collection of tools built right into Android Studio that can help make this process easier and give you insight into best practices that you might not even be aware of. In Android Studio, stop the application if you have it running. And then at the top, go to analyze and select the inspect code menu option. This will bring up a dialog box asking you to specify what scope you would like to run the inspection against. If you would like to inspect a particular file, module or a specific part of your project, you would identify that here. I will usually run an inspection against the whole project almost every single time I do this. Click okay to start the inspection. This will look through…

Contents