Opengapps: inc.tools.sh - Illegal number

Created on 31 Mar 2020  路  6Comments  路  Source: opengapps/opengapps

I am facing an issue when building my own package since I have imported this project, but the error is not blocking.
It appears when the build calls the function to check which android-sdk-build-tools is installed and what version is it :
./scripts/build_gapps.sh: 42: [: Illegal number: 027.0.1

Checked the explicit call with sed -x :

+ [ aapt = coreutils ]
+ command -v aapt
+ aapt v
+ sed -n s/.*v0\.2-\([0-9]*\)/\1/p
+ av=027.0.1
+ [ 027.0.1 -lt 04000000 ]

On my vm system ( Ubuntu 19.04 GNU/Linux 5.0.0-38-generic aarch64) I have installed the android-sdk-build-tools (and common) version 27.0.1+10 (the latest proposed)
So what kind of output version is expected ??

bug

All 6 comments

Still an issue?

Still get the same error, even on upgraded OS :
Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic aarch64)
./scripts/build_gapps.sh: 42: [: Illegal number: 027.0.1
Generating Open GApps super package for arm64 with API level 26...
.................
android-sdk-build-tools is already the newest version (27.0.1+12).
android-sdk-build-tools-common is already the newest version (27.0.1+12).

@mfonville, any idea what that check is supposed to be looking for and how to clean it up?

It checks the version of aapt, we need a minimum version of it to have support for certain feature.

@Ultraboss77 you have installed Debian/Ubuntu's own 'android-sdk-build-tools', it seems they might have changed something in the tooling that gives us an unexpected output.
Could you please install the Android SDK Tool from my PPA instead? https://mfonville.github.io/android-build-tools/

Thanks for the tip but, It seems my system can not find any compatible source :
sudo apt-get install android-build-tools-installer Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package android-build-tools-installer

Is it only for x86 OSes ?
So that's why I still use android package from Ubuntu.

Ah yes, it is only x86(_64) hadn't noticed your aarch64 before.
I found the reason why we added the check: https://github.com/opengapps/opengapps/commit/71014ec72ad23c4584509b6c8a218cdfffe27b05

Judging from my past comments, anything from sdk26 upwards should beok.
Your package seems to be based on sdk27, so let's try to make it compatible. I will make a fix for the version-check that will be compatible with Debian/Ubuntu's aapt.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SpasilliumNexus picture SpasilliumNexus  路  4Comments

ale5000-git picture ale5000-git  路  4Comments

nephilin82 picture nephilin82  路  7Comments

mahmud2011 picture mahmud2011  路  5Comments

nezorflame picture nezorflame  路  9Comments