Skip to content

Commit c6f7553

Browse files
committed
fix: use tools/bin/sdkmanager path for NDK install
1 parent 625662d commit c6f7553

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jitpack.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ 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 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"
12+
# Install NDK
13+
- yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
14+
- yes | $ANDROID_HOME/tools/bin/sdkmanager --install "ndk;26.2.11394342"
15+
# Create local.properties for Android SDK location
16+
- echo "sdk.dir=$ANDROID_HOME" > android/local.properties
1517

1618
install:
17-
- touch android/local.properties
1819
- cd android && ./gradlew :core:publishToMavenLocal -PVERSION_NAME=$VERSION
1920

2021
env:

0 commit comments

Comments
 (0)