shasum
Posts: 23
Joined: Sun Jun 21, 2020 1:48 pm

Android development

Mon Jul 13, 2020 4:55 pm

Hi all,
Has anyone managed to compile code for Android on the Pi?
I know that Google deems it officially not supported, but surely someone has tried to build the tools and the IDE?
Also, what are all of the Android packages listed by "sudo apt list" for, if not to compile Android code?
Thanks.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Android development

Mon Jul 13, 2020 5:04 pm

I haven't built any Android code on a Pi, but I don't see why it couldn't be done. I've done it on a PC using some of the same tools.

It won't run on a Pi though, at least not in Raspi OS.
Unreadable squiggle

hippy
Posts: 7735
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Android development

Mon Jul 13, 2020 7:17 pm

I usually use MIT App Inventor 2 to create Android Apps and I guess that would work as it's web based. I think I tried it and it worked but don't really remember.

Having noted a few questions on installing Android Studio and SDK on a Pi in passing there are no pre-built ARM binaries so you will need to build it from source. I believe that used to work but the big issue is amount of RAM. That may not be such an issue these days with the 4B, particularly the 8GB version.

I don't recall any "I did it and it works" posts so you may have to try it and see.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Android development

Mon Jul 13, 2020 7:24 pm

shasum wrote:
Mon Jul 13, 2020 4:55 pm
Hi all,
Has anyone managed to compile code for Android on the Pi?
I know that Google deems it officially not supported, but surely someone has tried to build the tools and the IDE?
Also, what are all of the Android packages listed by "sudo apt list" for, if not to compile Android code?
Thanks.

android-sdk is in the RaspiOS repositories:

https://packages.debian.org/buster/android-sdk
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Return to “Android”