I installed Android studio and tested the default hello world app. It compiled without any issues. Then I connected my phone and tried to test the app on it. Gradle build failed with the following error-
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade AAPT2 aapt2-4.1.1-6503028-windows Daemon #0: Daemon startup failed Please check if you installed the Windows Universal C Runtime. This should not happen under normal circumstances, please file an issue if it does.
Process unexpectedly exit.
I haven't made any code changes or any config changes this just a fresh installation of android studio could anyone please help me with the same?
I think you should have gradle issue. delete your current gradle folder from C drive and download latest version from gradle.org
A Dharmesh said you could delete gradle folder and also make sure you Clean your project then rebuild. Then the last step would be File->Invalidate Caches/Restart -> click on Invalidate cache and restart.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.