androidandroid-studiofirefoxkotlinfirefox-android

How to run kotlin app from android studio?


I cloned this repo onto my laptop: https://github.com/mozilla-mobile/focus-android

I then opened Android Studio and imported project. (imported the focus-android folder). But the run button right now is grayed out. I tried to edit configurations and launch the MainAcitvity.kt. Here were my configuration settings: https://preview.redd.it/mdyg1vcvcxi41.png?width=1073&format=png&auto=webp&s=bdcf5f6f51d59c9b107b459a0e2fc76dd6db059f

but I cannot select a module and it says Error: Module not specified when I try to run it. How exactly do I launch an activity / run firefox focus through an emulator given the github repo?

Thanks in advance!


Solution

  • Here is a tuto to create a virtual device: https://developer.android.com/studio/run/managing-avds

    PS: I just run the project to see, I did File > New > Import Project and it was working, here is a screen of what you should have https://i.sstatic.net/Nv5NN.png