Problems with Android Studio and its projects

- Andrés Cruz

En español
Problems with Android Studio and its projects

Continuing with the Android tutorials where Android Studio is generally present, today we will see an entry that is a little out of the ordinary or from the development of software components as such, which is what is generally published; Today we will see some of the problems that can be presented to us (and that have been presented to me) that in summary translate into only one thing; problems when running the application and with this to compile and run it in an emulator; In my case the following error occurs:

Could not delete path 'C:\Users\andre\AndroidStudioProjects\Examples\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-az'

It may vary and may indicate that certain files from the project compilation cannot be deleted, that in an Android application there are many files and there will be variations each time you insist on running the application; The first thing we can do is try to clean the project and rebuild it with the corresponding options offered by Android Studio:

If it continues to give you problems or the process does not end, you can try the following command in the console of your Android Studio:

The command:

gradlew.bat clean
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:bundleDebugJSAndAssets SKIPPED
:app:copyDebugIconFonts
:app:processDebugManifest
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
what went wrong:
Execution failed for task ':app:processDebugResources'.
java.io.IOException: Could not delete path \android\app\build\generated\source\r\debug\android\support\v7'

If you get an error like the one shown above; If the command doesn't finish and gives a FAILED try the next step to stop the Java processes and then run the command again.

If you get an error like the following:

EOCD signature not found in the last 0 bytes of the file. android studio

Where it indicates that the temporary apk cannot be deleted, you can try deleting it yourself and if your system tells you that another process has locked said file/apk:

In Windows we open the Task Manager and go to the processes window; It is likely that there is one or more of these processes called Java(Tm) Platform SE in the details tab, stop the processes called java.exe, then delete it and recompile and with this you should compile your project without major problems.

Andrés Cruz

Desarrollo con Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter

Andrés Cruz en Udemy

Acepto recibir anuncios de interes sobre este Blog.