Help: Updating ppsspp

I'm currently trying to update the ppsspp fdroid entry.

Have all my updates pushed to: https://gitlab.com/devopsdeluxe/fdroiddata/commits/update_ppsspp

When I build the application localy with gradle assembleOptimized it completes without error. When testing my build with fdroid (fdroid build -v -l org.ppsspp.ppsspp) the build fails because of it calling a depricated android-sdk command. Could anyone push me in the right direction regarding this?

I can provide additional information upon request!

Log gist:

ERROR: Could not build app org.ppsspp.ppsspp: Failed to update project at .
==== detail begin ====
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Invalid or unsupported command "update lib-project -p ."

System specs:

 » uname -a
Linux 4.14.4-3-ARCH #1 SMP PREEMPT Fri Dec 8 10:48:27 UTC 2017 x86_64 GNU/Linux
 » pkg -Ss android-ndk | grep installed
aur/android-ndk r16-1 (256, 0.25) [installed]
 » pkg -Ss android-sdk | grep installed
aur/android-sdk-platform-tools r27.0.0-1 (1166, 8.36) [installed]
aur/android-sdk 26.1.1-1 (1447, 7.79) [installed]
aur/android-sdk-build-tools r27.0.2-1 (443, 4.94) [installed]
 » 

Complete log:

 » fdroid readmeta
 » fdroid rewritemeta org.ppsspp.ppsspp
INFO: Rewriting 'org.ppsspp.ppsspp'
 » fdroid checkupdates org.ppsspp.ppsspp 
INFO: Processing org.ppsspp.ppsspp
INFO: ...up to date
INFO: Finished
 » fdroid lint org.ppsspp.ppsspp
 » fdroid build -v -l org.ppsspp.ppsspp
DEBUG: Reading 'config.py'
DEBUG: Getting git vcs interface for https://github.com/hrydgard/ppsspp.git
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git submodule foreach --recursive git reset --hard
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git submodule foreach --recursive git clean -dffx
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch origin
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch --prune --tags origin
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git remote set-head origin --auto
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git checkout -f HEAD
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git clean -dffx
DEBUG: Getting git vcs interface for https://github.com/hrydgard/ppsspp.git
DEBUG: > git --version
git version 2.15.1
INFO: Using git version 2.15.1
DEBUG: Checking 1.5.4.0
INFO: Building version 1.5.4.0 (15040000) of org.ppsspp.ppsspp
INFO: Getting source for revision v1.5.4
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git submodule foreach --recursive git reset --hard
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git submodule foreach --recursive git clean -dffx
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch origin
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch --prune --tags origin
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git remote set-head origin --auto
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git checkout -f v1.5.4
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git clean -dffx
INFO: Initialising submodules
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git submodule sync
DEBUG: Directory: build/org.ppsspp.ppsspp
DEBUG: > git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com submodule update --init --force --recursive
Submodule path 'assets/lang': checked out '1e3e4a0ba0ca8c0a092e027dfb7c1c4778366db5'
Submodule path 'dx9sdk': checked out '7751cf73f5c06f1be21f5f31c3e2d9a7bacd3a93'
Submodule path 'ext/SPIRV-Cross': checked out '90966d50f57608587bafd95b4e345b02b814754a'
Submodule path 'ext/armips': checked out '8b4cadaf62d7de42d374056fc6aafc555f2bc7dc'
Submodule path 'ext/glslang': checked out '2edde6665d9a56ead5ea0e55b4e64d9a803e6164'
Submodule path 'ffmpeg': checked out 'a2e98d7ba4c7c5cac08608732c3058cb46e3e0ef'
Submodule path 'ffmpeg/gas-preprocessor': checked out '36bacb4cba27003c572e5bf7a9c4dfe3c9a8d40d'
Submodule path 'pspautotests': checked out 'd02ba7407050f445edf9e908374ad4bf3b2f237b'
INFO: Creating local.properties file at build/org.ppsspp.ppsspp/local.properties
INFO: Creating local.properties file at build/org.ppsspp.ppsspp/android/local.properties
DEBUG: Removing debuggable flags from build/org.ppsspp.ppsspp/android
INFO: Removing specified files
INFO: Removing pspautotests
INFO: Removing dx9sdk
INFO: Cleaned build.gradle of keysigning configs at build/org.ppsspp.ppsspp/android/build.gradle
DEBUG: Updating main project
DEBUG: Directory: build/org.ppsspp.ppsspp/android
DEBUG: > /opt/android-sdk/tools/android update lib-project -p .
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Invalid or unsupported command "update lib-project -p ."

Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
ERROR: Could not build app org.ppsspp.ppsspp: Failed to update project at .
==== detail begin ====
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Invalid or unsupported command "update lib-project -p ."

Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
==== detail end ====
INFO: Finished
INFO: 1 build failed

Thanks in advance for your help!