Skip to content

Commit 625662d

Browse files
committed
fix: use cmdline-tools sdkmanager for Java 17 compatibility
1 parent 1d24866 commit 625662d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

jitpack.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ before_install:
99
- rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
1010
# Install cargo-ndk
1111
- cargo install cargo-ndk
12-
# Install NDK
13-
- yes | sdkmanager --licenses
14-
- yes | sdkmanager --install "ndk;26.2.11394342"
12+
# Install NDK using cmdline-tools (compatible with Java 17)
13+
- yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
14+
- yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;26.2.11394342"
1515

1616
install:
1717
- touch android/local.properties
18-
# Debug: show what NDK versions are available
19-
- ls -la /opt/android-sdk-linux/ndk/ || echo "No /opt/android-sdk-linux/ndk/"
20-
- ls -la $ANDROID_HOME/ndk/ || echo "No ANDROID_HOME/ndk/"
21-
- echo "ANDROID_HOME=$ANDROID_HOME"
22-
- echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME"
2318
- cd android && ./gradlew :core:publishToMavenLocal -PVERSION_NAME=$VERSION
2419

2520
env:

0 commit comments

Comments
 (0)