I am currently attempting to start developing for Android on the Raspberry PI 2. I have already ruled out the posibility of using an IDE such as Eclipse or Android Studios (yes I know the RPI isn't even meant to be able to run it) so I am now looking at developing from the command line.
What I have so far:
adb
Now all I need to have is the android
executable which is contained in the stand-alone SDK. I have downloaded it from this source (android-studio-ide-135.1641136-linux.zip
). However, when I try to run the android
executable in the command line I get the following error:
SWT folder '/home/pi/android-sdk-linux/tools/lib/arm' does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
when I run any command from the android
file.
I have no idea what to do or how to fix it as I am a complete noob when it comes to the RPI and anything with Linux in general. Any pointers as to how to fix this? Thanks.
Install Android on Raspberry Pi. 1 Balena Etcher. We’ll use it to flash the SD card. It’s available on any operating system. You may already have it or prefer another tool, which isn’t ... 2 LineageOS for Raspberry Pi 4 or LineageOS for Raspberry Pi 3. 3 OpenGapps. The alternative to install Google Apps on a custom Android device.
Having support for the hardware renderer allows Android to make full use of the GPU built into the Raspberry Pi. This helps maximize performance when running things like games on your device. The only feature missing from these builds of Android is support for hardware decoding and encoding of video.
To restart our Raspberry Pi we can , click the “ Reboot System ” button. As we performed a factory reset, we will need to go back through some initial configuration steps. These steps include connecting your Google account to your Raspberry Pi Android device. 1. Straight up, you will get a chance to specify the language that you want to use ( 1. ).
Without developer mode, we won’t be able to boot our Raspberry Pi into recovery mode. 1. On the desktop of your Android device, click and drag up from the bottom three apps to bring up the app library. 2. Within this menu, click the “ Settings ” app. 3. Scroll down to the bottom till you find the “ About Tablet ” option and click it.
First, you have to look in your /usr/share/java folder, for the file swt.jar If that doesn't work, try:
sudo apt-get install libswt-gtk-3-java
Which will put swt-gtk-3.8.0.jar
in the /usr/share/java
folder.
Create the folder /home/pi/android-sdk-linux/tools/lib/arm
Then, copy whichever file you chose, (swt-gtk-3.8.0.jar
, or swt.jar
) and place it in your /home/pi/android-sdk-linux/tools/lib/arm
folder. This worked for me, and I hope it will also work for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With