Skip to content

tor-android-service gradle failure when probing network interfaces

When building nightly android-aarch64 and android-x86 (I haven't tried the other platforms), the build fails on tor-android-service with:

Starting build: Tue Jul 30 16:12:53 2019
patching file build.gradle
patching file service/build.gradle
patching file service/src/main/java/org/torproject/android/service/TorService.java
Hunk #2 succeeded at 99 (offset 3 lines).

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine a usable local IP for this machine.

The failure is on the gradle command:

# Build Android Libraries and Apps
$GRADLE_HOME/gradle-4.1/bin/gradle --offline -P androidplugin=3.0.1 -P appcompatVersion=23.4.0 -P compileVersion=26 -P targetVersion=26 -P minVersion=16 assembleRelease -x lint
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information