Skip to content

Android google play release workflow failing due to outdated target SDK #121

@Rezan7CC

Description

@Rezan7CC

As can be read here from August 31 the android dev console started requiring a target SDK of API level 34 or higher:
https://developer.android.com/google/play/requirements/target-sdk

As a result the release-android-google-play.yaml workflow has been failing for me complaining about a low target sdk level.

xbuild (both the original and your fork) have a hard-coded API level of 33 in xbuild/src/config.rs. However I found a workaround which is setting each of these in the manifest.yaml:

  manifest:
    compile_sdk_version: 34
    platform_build_version_code: 34
    compile_sdk_version_codename: 14
    platform_build_version_name: 14
    sdk:
      target_sdk_version: 34
      min_sdk_version: 21

However then we run into the next xbuild issue which is Error: ndk doesn't support sdk version 34.

It took me quite a bit of time to try to investigate how the ndk / dependencies for xbuild can be upgraded. The latest state of my investigation is that I believe the dependencies are updated for the xbuild repository by the sdk.yaml action when creating a new release in xbuild.
I tried creating a fork from your xbuild fork to give running the action a try by creating a new release but this is when I'm running into the next error:

Run cp -r $CLANG/lib/linux/aarch64/* Android.ndk/usr/lib/aarch64-linux-android/
  cp -r $CLANG/lib/linux/aarch64/* Android.ndk/usr/lib/aarch64-linux-android/
  shell: /usr/bin/bash -e {0}
  env:
    TOOLCHAIN: /usr/local/lib/android/sdk/ndk/[2](https://github.com/Rezan7CC/xbuild/actions/runs/11021585909/job/30608981092#step:9:2)7.1.12297006/toolchains/llvm/prebuilt/linux-x86_64
    CLANG_VERSION: 
    CLANG: /usr/local/lib/android/sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/linux-x86_6[4](https://github.com/Rezan7CC/xbuild/actions/runs/11021585909/job/30608981092#step:9:4)/lib64/clang/
cp: cannot stat '/usr/local/lib/android/sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/linux-x8[6](https://github.com/Rezan7CC/xbuild/actions/runs/11021585909/job/30608981092#step:9:6)_64/lib64/clang//lib/linux/aarch64/*': No such file or directory
Error: Process completed with exit code 1.

And this is the current point where I'm stuck now to get the playstore release action to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions