Skip to main content

Posts

Showing posts with the label Windows

How to Fix "Unable to delete directory" Build Errors in Android Studio

Fixing "Unable to delete directory" Build Errors in Android Studio If you're encountering the frustrating   "Unable to delete directory '...\app\build'"   error on Windows, you're not alone. This is a common issue where a process, often Android Studio itself or a Gradle daemon, retains a lock on files within the build directory, preventing Gradle from cleaning or rebuilding your project. This guide will walk you through the most effective solutions to resolve this file lock issue and get your builds working again. Understanding the Error The error message typically looks like this: Unable to delete directory 'C:\Users\YourName\YourProject\app\build' Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. This is almost always a   Windows file locking issue . The culprit can be: The Gradle Daemon (a background process) Android Studio's internal processes W...

How to Fix "JAVA_HOME is not set" Error on Windows, Mac, and Linux

Fixing the "JAVA_HOME is not set" Error: A Complete Guide Encountering the error   ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH   is a common hurdle for developers. This error means your system can't find a Java Development Kit (JDK), which is essential for running tools like Gradle for Android development. This guide will walk you through checking for a JDK, installing one if needed, and correctly setting the   JAVA_HOME   environment variable on Windows, macOS, and Linux. 1. Check if Java is Installed First, verify if Java is already on your system but not properly configured. Open a   Command Prompt   (Windows) or   Terminal   (macOS/Linux). Run the following commands: echo %JAVA_HOME% java -version If these commands return a version number, Java is installed. If you get an error like   command not found , you need to install a JDK. 2. Install a JDK (If Needed) If you don't have a JDK, you need to install ...

How to remove Microsoft account linked with Windows

When adding Microsoft Email account in Windows Mail application or setting the Microsoft Teams, Windows forcefully associate that account with Windows Account. Unfortunately if you remove the account that email will also disassociate from Mail and Teams application. Below are the steps to remove the email from Windows Account : 1. Open Setting by pressing Windows + i buttons or from the gear icon in Windows menu. 2. Now in new window find and click on Accounts. 3. In new window click on Email & accounts. 4. Under Accounts used by other apps, click on your email and Remove button will appear. 5. Click on Remove. 6. Now click on Your Infor and under profile picture it should be Local Account. All done. Hope this helps.

How to kill a Windows service which is stuck in Stopping status

In Windows service, you stop the service but it returned an error and stuck in "Stopping" status. In this case you need to kill the service so you can start again. There are two solutions for either you can restart the machine but if this machine is a server and it is not possible than you need to kill the service manually. For killing the service process please follow below steps: Get the Service Name: Go into Services and double click on the Service which has stuck in "Stopping" status.  Make a note of the "Service Name". Find out the PID of the service: Open a command prompt and type in: sc queryex [service_name] Replace this [service_name] with the name you copied from previous step. Copy of the PID Kill the PID: In the same command prompt type in: taskkill /f /pid [PID] Replace this [PID] with process number you copied from previous step. If it is successful you should receive the following message: SUCCESS: The process with PID XXXX has been termin...

How to set Language Support for non Unicode Program in Windows 10

  Open Start menu or press windows button. Type Language and open. Language setting window will appear, now press on Location Region setting window will appear, go to Administrative tab and click on Change system locate button. New window will appear with current system locate setting. From drop down select the language which is not appearing properly in programs like outlook, for me it is Arabic. After selecting the language windows will ask for restart. click "Restart now" button. check the issue.