The recommended upgrade from Godot 3.2.3 to Godot 3.3 introduced a problem in my existing project:
I can no longer export my game to Android.
Attempting to do it anyways displayed 6 errors in red.
Most of them were solved by installing the Android Export Template for Godot 3.3,
but One remained:
┌─────────────────────────────────────────────────────────────────────────┐
│ Load Errors X │
├─────────────────────────────────────────────────────────────────────────┤
│ ?Unable to find Android SDK build-tools' apksigner command. │
│ Please check in the Android SDK directory specified in Editor settings. │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
├─────────────────────────────────────────────────────────────────────────┤
│ > OK < │
└─────────────────────────────────────────────────────────────────────────┘
When I close the window, I find this one:
┌──────────────────────────────────────┐
│ Warning! X │
├──────────────────────────────────────┤
│ Unable to find the 'apksigner' tool. │
├──────────────────────────────────────┤
│ > OK < > Copy Text < │
└──────────────────────────────────────┘
I didn't have this problem before, as Godot 3.2.3 used the Jarsiger, in a separately specified filepath, to sign my APK files.
I have specified /lib/android-sdk
as my Android SDK path. This is the file structure from that point, on a fresh reinstall of android-sdk
(I boldened the word apksigner. If you still can't find it, try to press [Ctrl]+[F] and type apksigner):
- /lib/android-sdk
- - build-tools
- - - [2 directories with identical file structure:] 27.0.1 [soft link]; debian
- - - - aapt
- - - - aapt2
- - - - aidl
- - - - aidl-cpp
- - - - apksigner.jar
- - - - dexdump
- - - - dx
- - - - lib
- - - - - dx.jar [soft link]
- - - - - shrinkedAndroid.jar [soft link]
- - - - llvm-rs-cc
- - - - mainDexClassesNoAapt.rules
- - - - mainDexClasses.rules
- - - - package.xml
- - - - runtime.properties
- - - - source.properties
- - - - split-select
- - - - zipalign
- - licenses
- - - apache-2.0
- - platforms
- - - android-23
- - - - android.jar [soft link]
- - - - framework.aidl
- - platform-tools
- - - adb
- - - dmtracedump
- - - etc1tool
- - - fastboot
- - - hprof-conf
- - - make_f2fs [soft link]
- - - mke2fs [soft link]
- - - package.sml
- - - sload_f2fs [soft link]
- - - source-properties
- - - sqlite3 [soft link]
- - tools
- - - bin
- - - - e2fschl [soft link]
- - - - fsck.ext4 [soft link]
- - - - mkfs.ext4 [soft link]
- - - - resize2fs [soft link]
- - - - tune2fs [soft link]
- - - package.xml
- - - proguard
- - - - bin
- - - - - proguard [soft link]
- - - - - proguardgui [broken link]
- - - - lib
- - - - - proguardgui.jar [broken link]
- - - - - proguard.jar [soft link]
- - - - - retrace.jar
- - - - proguard-android-optimize.txt
- - - - proguard-android.txt
- - - - proguard-project.txt
- - - source.properties