Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How NOT to create projects with Jetpack Compose using Android Studio

I can’t create a normal project without jetpack-compose, it always includes its libraries and configurations in Android Studio, and the working project requires not using it.

I don't want Jetpack Compose

I expected it to open everything with xml views, everything normally, and using ActivityCompat in the MainActivity.kt

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

During project creation the template that is selected by default is "Empty Activity". That is the modern way to create Android apps and uses Compose, but when you want to create a new project based on XML layouts and views you should select any of the "Views" templates instead:

The new project won’t contain any Compose dependencies but starts with a set of XML layout files and the respective code in the activity, depending on the specific template you chose.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading