File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff 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
1616install :
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
2520env :
You can’t perform that action at this time.
0 commit comments