Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio defaulting to Kotlin [duplicate]

I've just finished my Java module at Uni and was starting to experiment with Andriod studio. I updated it today to Flamingo and started a new project, and now it is defaulting to Kotlin.

I've only just learnt java and wanting to use that, how do I get the MainActivity file to default to Java?

Help is much appreciated, Thanks

G

like image 470
Garganator Avatar asked May 23 '26 13:05

Garganator


1 Answers

Choose for example the 'Empty Views Activity' as starting template when creating a new project. There you do have the option to choose Kotlin/Java.

The default template uses Compose, which is Kotlin only.

like image 70
Peterdk Avatar answered May 26 '26 04:05

Peterdk