Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenPy sdkarm downloads regular RAPT which downloads x86_64 build_tools binaries #138

Open
DjBRINE opened this issue Jul 23, 2024 · 0 comments

Comments

@DjBRINE
Copy link

DjBRINE commented Jul 23, 2024

While trying to build an Android universal APK of any of my projects in RenPy-sdkarm running on a prooted Ubuntu inside Termux on an Android tablet, I had stumbled upon a peculiar issue:

Ren'Py 8.2.3.24061702

I'm compiling a short test program, to see if you have a working JDK on your system.



Java version: 21
Target version: 21
OK




The JDK is present and working. Good!

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.5/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :app:preBuild UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :renpyandroid:preBuild UP-TO-DATE
> Task :renpyandroid:preReleaseBuild UP-TO-DATE
> Task :app:javaPreCompileRelease
> Task :renpyandroid:writeReleaseAarMetadata
> Task :app:generateReleaseResValues
> Task :renpyandroid:generateReleaseResValues
> Task :renpyandroid:generateReleaseResources
> Task :app:checkReleaseAarMetadata
> Task :renpyandroid:packageReleaseResources
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :app:packageReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :renpyandroid:extractDeepLinksRelease
> Task :app:parseReleaseLocalResources
> Task :renpyandroid:compileReleaseLibraryResources
> Task :renpyandroid:parseReleaseLocalResources
> Task :renpyandroid:javaPreCompileRelease
> Task :app:extractProguardFiles
> Task :app:mergeReleaseResources FAILED
> Task :renpyandroid:processReleaseManifest
> Task :renpyandroid:processReleaseJavaRes NO-SOURCE

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
      > AAPT2 aapt2-8.2.0-10154469-linux Daemon #0: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
      > AAPT2 aapt2-8.2.0-10154469-linux Daemon #3: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
      > AAPT2 aapt2-8.2.0-10154469-linux Daemon #4: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
      > AAPT2 aapt2-8.2.0-10154469-linux Daemon #2: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.
   > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
      > AAPT2 aapt2-8.2.0-10154469-linux Daemon #1: Daemon startup failed
        This should not happen under normal circumstances, please file an issue if it does.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 50s
18 actionable tasks: 18 executed




The build seems to have failed.

I tried to reinstall the Android SDK and RAPT multiple times
Tried different projects (The Question, freshly made dummy project, I Wani Hug That Gator)
Even tried nightly 8.3.0 builds with SDK 35
The error remains the same.
After many days of debugging I have discovered that RAPT provided me an Android SDK with build_tools (aapt2 in particular) compiled for x86_64 instead of aarch64

Expected result:
Successful build with arm RAPT Android SDK binaries in RenPy's sdkarm

Additional info:
Device: Xiaomi Pad 5
Termux: Latest F-Droid build
Ubuntu 24.04 LTS ARM
Kernel: Linux-6.2.1-PRoot-Distro
Aarch64 with glibc 2.39
RenPy version: 8.2.3.24061702 sdkarm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant