News for hackers. Stuff that matters.
Re:Rawdrawandroid – Build Android apps without any Java, in ... by skybrian on Monday September 23, 2024 @12:34AM (#41622412)
Looks like you still have to start by installing Android Studio, which seems excessive. Is there a way to just download an Android SDK?

Looking briefly at the makefile, I think they might have avoided Gradle, though it calls other tools written in Java.

I'd love to see a way to build a Flutter app without Gradle.

Re:Rawdrawandroid – Build Android apps without any Java, in ... by flohofwoe on Monday September 23, 2024 @03:20AM (#41623268)
It's possible to build without gradle by calling the sdk tools for bundling and signing directly (for instance from make or cmake), but Android Studio is at least useful for debugging the resulting apk (AS also works as "standalone debugger" for debugging an apk built elsewhere).
Re:Rawdrawandroid – Build Android apps without any Java, in ... by MaXtreeM on Monday September 23, 2024 @02:15AM (#41622803)
> curl -k "https://dl.google.com/android/repository/commandlinetools-li..." -o commandlinetools-linux.zip

unzip somewhere, set path variable

> yes | sdkmanager --licenses && sdkmanager "platform-tools" && sdkmanager "ndk-bundle" && sdkmanager "build-tools;33.0.0" "platforms;android-33"

Re:Rawdrawandroid – Build Android apps without any Java, in ... by slimsag on Monday September 23, 2024 @02:58AM (#41623115)
This is better indeed, but from recollection last time I tried this.. I think that still requires a full OpenJDK installation and I believe those `sdkmanager` commands install multiple GB of tools sadly.
Re:Rawdrawandroid – Build Android apps without any Java, in ... by MaXtreeM on Monday September 23, 2024 @06:28AM (#41624466)
Yes to both OpenJDK and large size.
Re:Rawdrawandroid – Build Android apps without any Java, in ... by hyperbolablabla on Monday September 23, 2024 @04:29AM (#41623743)
Not sure how useful this is but here's a gist that runs through the process without needing Android Studio: https://gist.github.com/jonnybrooks/13c6cbae832e7d1662e6c143...
Re:Rawdrawandroid – Build Android apps without any Java, in ... by Vt71fcAqt7 on Monday September 23, 2024 @10:08AM (#41626299)
>I'd love to see a way to build a Flutter app without Gradle.

You generally don't need to touch gradle at all with flutter. Is your issue about having to install gradle onto your machine, even if you don't use it directly?

Re:Rawdrawandroid – Build Android apps without any Java, in ... by skybrian on Monday September 23, 2024 @10:29AM (#41626532)
Yes, it’s mostly hidden, but it runs Gradle behind the scenes and that’s okay as long as nothing goes wrong.

(I used to work on it, or at least tried to before giving up in frustration.)

Re:Rawdrawandroid – Build Android apps without any Java, in ... by Vt71fcAqt7 on Monday September 23, 2024 @11:57AM (#41627462)
>I used to work on it, or at least tried to before giving up in frustration.

Out of interest, what blockers did you encounter using Flutter? For me it was much better than native android in terms of development, but it could depend on the usecase.

Re:Rawdrawandroid – Build Android apps without any Java, in ... by zmodem on Monday September 23, 2024 @01:07PM (#41628241)
> Is there a way to just download an Android SDK?

Yes, you can just grab the zip files. For example like this: https://www.hanshq.net/command-line-android.html#sdk