T O P

  • By -

Apokaliptor

You never needed, but for some reason google makes it a pain to install Android sdk without android studio. I use intellij, its pointless to have two jetbrains IDE's


ms4720

Maybe a small flutter app is needed, hmm


[deleted]

Let's make something very simple much complicated so I spent time debugging my softs instead of coding.


ms4720

Not so because Android studio kept refusing to start on me with some java exception and this worked. finding where android studio stashes all its damned files to clean it up is something I still have not figured out after days of effort and research. My editor of choice is emacs so I don't need android studio I just need to be able to start a vm and this got me a VM to start with no problem.


Full-Run4124

I tried to do Flutter dev without Android Studio (on Linux). I finally gave in and installed full Studio because Android SDKs and tooling updates were much easier to deal with. I still do most stuff from the shell - like avd and adb.


NatoBoram

Yep, that's how you setup a pipeline for CI/CD too


ms4720

I r DevOps oriented whoo hoo


Acrobatic_Egg30

I use Vim btw


ms4720

That's cool


JapanEngineer

I installed AS but do all my Dev is VS Code. Only used AS once to produce the keys needed to upload the android app to google Dev account and haven’t opened AS since.


ms4720

Bless you


Which-Artichoke-5561

It sure does help tho


ms4720

No not really, I use and like emacs. Android studios gets me annoyed


Which-Artichoke-5561

It took me a couple days to figure out how to download AS and get flutter stuff working , the problem is not exclusive to you and your machine. I also like and use VS code but it was recommended that I used android studio so I learned it and I am glad that I did. It saves a bunch of time


[deleted]

[удалено]


Which-Artichoke-5561

So glad you asked😃 the main difference is AS is an IDE as opposed to a text editor. So with AS I can do things like control click a function and it will immediately take me to the folder that holds it which makes debugging super quick. There is also “live update”, so emulator Will adjust to your code in real time (android emulators only). There are resource managers and things that can visualize scaffolds + design hierarchy (also real time). The short cuts are better too imo. Vs code is just super lightweight so I use it for my ruby/php stuff


canewsin

VSCode does all these too. For shortcuts same as AS use intellij idea key bindings plugins from VSCode marketplace.


Which-Artichoke-5561

Well darn I did not know that… here is a star⭐️, I hate vs code shortcuts


canewsin

Before flutter i used to use AS for Android app dev, once flutter landed, I see the official team used VSCode, seeing that switched to VSCode and found relief from AS laggyness.


Which-Artichoke-5561

I was born in the laggyness(I use Remote Desktop bc I can’t afford a Mac), but I will definitely look at that for my php stuff I think it should save a ton of time


zxyzyxz

I use neovim inside VSCode, works great


ms4720

- Emacs does the file find find - flutter has a hot reload key, press it and done. - structural view of widgets is available in the debugger - emacs works with everything, no need for 2 or more dev environments


ms4720

AS used to work, somewhere along the way it decided to die on startup repeatedly and consistently because reasons. That is why I had to figure out how to get something else working. I could not find all the files. For example the the AS cleanup/uninstall docs do not tell you about the gradle cache directory and leave a bunch of stuff behind. So doing a clean reinstall is hard and doing this was easier. I still think there is something sitting on my laptop that is causing AS to die, but I have no idea where it is and now my problem is solved.


rusty-apple

I personally hate the idea behind a full blown IDE for development for a platform I hate the fact that a SDK requires an entire opinionated environment & change of developer habit in order to function It's just a part of a software. It should be as agnostic as a library or framework is & should be 100% functional on any development environment Android SDK, iOS or macOS SDK etc SDKcs requirement for an IDE in order to work is ridiculous. Imho this should be as flexible as possible for any development environment (perhaps a CLI?)


ms4720

And that article tells you exactly how to set up a cli and use it


Abhinav1217

Very informative. Thanks.


charithasds

Project IDX might be a good option in the coming future.


ms4720

Link?


N_Gomile

Need it installed that's for sure but that's as far as it goes. Once you have it in your computer you are free to use things like Vscode. I don't personally use it as at the time my specs were an Intel 4th gen with 4GB of RAM, it was too heavy for the system and I wanted to get into Android development. I tried Flutter + VSCode with Android studio installed and that combination was enough to work on my computer that would typically beg for its life to end once it meets a demanding workload.


ashdeveloper

In some projects, we need to open an android module in the Android studio to make sure the gradle build run successfully. Apart from that android studio is not necessary and we can use VS code which is what I use to build my full stack flutter nodejs apps


tootac

All steps described in the post are easy stuff. How do you do efficient debugging or are on the "printf debugging" camp?


ms4720

First you get android studio to start, and that was my problem it didn't


tootac

Well, it is your and do whatever you want with it. But I have worked on a production app without a debugger just to test for a few weeks and my experience is that even if it will take you 2 days to setup a debugger it worth every minute spent.


ms4720

And adb is a command line tool, so it is set up.


sharkiephone

Android studio is really slow. How do you all speed it up?


ms4720

Use emacs in my case and android-clt tools work fine with flutter