Upgraded to Android Studio 3.4 - Aapt2Internalexception: Aapt2: Daemon Startup Failed

Unable to build Android APK - Execution failed for task ':app:mergeDebugResources'

Run following command from Android studio terminal/ubuntu machine shell.

gradlew clean
gradlew assembleDebug --debug

Android build fails (aapt2) when building as application as Windows SYSTEM account

while building the gradle is creating .gradle directory in the current user home directory.

Now go into "users" directory and try to search the home directory for the "SYSTEM" user.... (there is no one)

So, the simplest way - create a user and start service under this user.

Provide access to the building folder. Normally that should be enough to start gradle.

Process unexpectedly exit. AAPT2 aapt2-3.4.2-5326820-windows Daemon #0: Daemon startup failed problem

Change classpath 'com.android.tools.build:gradle:3.4.2' to classpath 'com.android.tools.build:gradle:3.3.2' or below 3.3.2

I got the answer from this website : https://discuss.gradle.org/t/aapt2-daemon-startup-failed/32358



Related Topics



Leave a reply



Submit