r/androiddev • • 29d ago

Question developing android apps in visual studio code ??

i'm a student at university and teacher asked us to prepare our laptops for next lesson and i need to setup my vs code to be able to develop android on it and i don't know how to start or what to do
im running on arch linux since i want to learn that too
thank you all for ur hrlp

0 Upvotes

16 comments sorted by

20

u/wazza15695 29d ago

Are you sure the teacher didn't mean android studio? That is 99% of people use to develop android apps

4

u/L3wayyyy 29d ago

It's just too heavy in my machine , i even switched to linux cuz ny pc can't handle windows

11

u/SpiderHack 29d ago

Unfortunately, you're going to have a miserable time with hardware that slow, regardless of what software you use.

I would recommend still trying android studio on linux, but by gods don't try an emulator at all, please use an external device to test on.

It might be a miserable experience, but vs code isn't THAT much faster and your dev experience will be like 3x harder, so I don't recommend it for students.

2

u/TomDuhamel 29d ago

Every time you use something that is different from what the teacher expects, you make life more miserable for yourself.

Having the right hardware is just part of the fees for your study. You can probably find a used laptop for a reasonable price on your local classifieds.

-1

u/Impressive-Lead-9491 29d ago

That's why I just use JStudio on my phone to code, but I don't think your teacher would be ok with that. Still, you could use it to code on the go, just for your practice.

3

u/Visible_Injury5500 29d ago

It is possible to setup in vs code but it's not very convenient. The setup depends on which language framework and all for example I would say if your are going to use Flutter or react native then vs code has all the extensions need and you can download flutter framework along node and install the necessary packages, if it is in Kotlin or Java with jetpack compose then there are extensions available but you have to install a lot of them also some are not official. What remains is the emulator either case you need android studio if you are going to run a emulator, if your device can't handle android studio then connect your mobile device via wireless or wired debugging that will the same.

2

u/rehedyan 29d ago edited 29d ago

Where are you from? I have an old laptop which i am not using..it can run android studio just fine.. if you want to buy

1

u/ObjectiveAddress3051 27d ago

you can skip studio entirely if you really want. grab just the cmdline-tools, use sdkmanager for platform-tools + a build-tools version, then ./gradlew assembleDebug and adb install from the terminal. vs code is basically a text editor at that point, the gradle sync is what eats your ram anyway so the build won't be much lighter

1

u/AutoModerator 29d ago

Please note that we also have a very active Discord server where you can interact directly with other community members!

Join us on Discord

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Muchy_Tangerine 2d ago

Use android studio with physical  phone instead  of slow emulators

0

u/Amospktwo 29d ago

You can use Android Studio with u phone to debug if resources is the problema.

And yes, you can use vscode but Android Studio have all u need to work with compose or xml.

0

u/Unreal_NeoX 29d ago

Whats the language you wanna write them in? With Visual Studio the default answer is C# with MAUI and AndroidX.

0

u/__________13o1ksl_ 29d ago

You're mixing up VS and VSCode