Hello everyone,
I’m facing an issue while exporting a Debug APK from Construct 3 (Cordova build). The build fails during the processDebugResources step with the following error:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing LinkApplicationAndroidResourcesTask$TaskAction
AAPT2 aapt2-8.7.3-12006047-linux Daemon #0: Daemon startup failed
This should not happen under normal circumstances.
Complete log also shows:
Deprecated Gradle features
ANDROID_HOME is set correctly but ANDROID_SDK_ROOT is undefined
Build stops at :app:processDebugResources
AAPT2 daemon fails to start
Here is the snippet:
ANDROID_HOME=~/androidSDK
ANDROID_SDK_ROOT=undefined
Using Android SDK: ~/androidSDK
Task :app:processDebugResources FAILED
AAPT2 Daemon startup failed
BUILD FAILED in 2s
Command failed with exit code 1: ./gradlew cdvBuildDebug
My Setup:
Construct 3: latest stable build
Cordova Android version: (default used by C3)
OS: Linux
JDK: OpenJDK 11
Android SDK downloaded manually
What I tried:
Reinstalled Android SDK + platform-tools
Verified ANDROID_HOME
Tried different JDK versions
Cleaned project and re-exported from Construct 3
Tried enabling --warning-mode all (same error)
Issue:
AAPT2 daemon startup keeps failing, causing the entire build to stop at processDebugResources.
Question:
Does anyone know what typically causes AAPT2 Daemon startup failure on Construct 3 / Cordova builds?
Is this related to missing build-tools version, JDK version mismatch, or some broken SDK folder?
What is the correct setup for Construct 3 Cordova Android build on Linux?
Any help would be really appreciated. Thanks!