Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6125

Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported on Ubuntu [duplicate]

$
0
0

I'm running tests from a raspberry pi 4 running Ubuntu server 20.04 that require adb (android sdk tools). The tests have been running without issue for months now.Yesterday the tests began to fail with the following error:

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported.

To install android-sdk i'm running the follow command: This command has been succesfully installing android-sdk with tools and setting the path and variables automatically.

sudo apt -y install android-sdk

After I started seeing the error yesterday, I attempted to set the path manually in ubuntu terminal using the following commands. (which I shouldn't have to do this, but I tried anyway to see if it would fix the issue.) It did not..

export ANDROID_HOME="/usr/lib/android-sdk/"export PATH=$PATH:$ANDROID_HOME/toolsexport PATH=$PATH:$ANDROID_HOME/platform-tools

It is odd to me that this started to break yesterday. It had been working fine for months. Anyone else experiencing this? Any ideas on fixes?

EDIT:

I thought it might be useful to add my java installation and configuration:I run this before installing android-sdk:

sudo apt-get -y updatesudo apt-get -y install openjdk-8-jdkexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-arm64export PATH=$PATH:$JAVA_HOME/bin

Viewing all articles
Browse latest Browse all 6125

Trending Articles