Missing Activity & Fragment+ViewModel template

Viewed 2889

I'm trying to get started with JetPack and MVVM and follows this tutorial : https://developer.android.com/jetpack/docs/getting-started

It states I should pick the following activity template :

enter image description here

Problem is I do not have it :

enter image description here

I did download the latest android studio version (Canary 3.3), I Invalidated and restarted, downloaded latest SDK, but without sucess.

4 Answers

I am using android studio 3.2 stable version, and I couldn't also find "Activity & Fragment+ViewModel". But I had an option called "Fragment+ViewModel" and that generates the activity also along with the required fragment and viewmodel.

enter image description here

These are the generated files.

enter image description here

in studio3.3 you can find Fragment+ViewModel in this version the position is File->New->Activity->Fragment+ViewModel

Android Studio 3.2 stable version we having those features. Please update your stable version to 3.2 and then start the MVVM pattern development. Congrats for success in advance.

Related