Android "Apply Code Changes" Doesn't Work
已回答
I'm using the latest Intellij IDEA Ultimate with the latest Android plugin. When I try to “Apply Code Changes” from the Run menu, it fails with the following:
We were unable to deploy your changes. D:\JetBrains\IntelliJ IDEA 2022.2\plugins\android\resources\installer\x86_64\installer (The system cannot find the path specified)
There is indeed no file there, in fact there's no “android” directory in the plugins directory at all. Running the app normally works fine though. Any ideas?
请先登录再写评论。
Hi Hnz8a6v5
Could you verify you're running the latest IntelliJ IDEA Ultimate. I see in your path 2022.2 version. Just to verify go to the IntelliJ IDEA | About IntelliJ IDEA option on Mac or File | About IntelliJ IDEA on Windows, click Copy and Close, and paste the information here.
Thanks!
Yes, it's the latest one. It originally installed to that path, so that's what it remains.
Could you please make sure that the Android plugin is enabled in your IDE?
The following steps are recommended.
• File | Invalidate Caches | Invalidate and Restart
• Follow the steps suggested by File | Repair IDE
Also, please uninstall the Android plugin via Settings | Plugin (please uninstall, not disable) and reinstall it to see if the issue persists.
If the issue persists, please make sure the issue is reproduced, then collect the logs via Help | Collect Logs and Diagnostic Data, and share the zip file with us, thank you.
Those steps did not work, how should I share the zip file?
Please attach the zip file through our safe upload site https://uploads.jetbrains.com/, and share the uploadID here.
Done, ID: 2025_07_24_2N41E98atB9UfWgpqN1YHa
I can see that you're using IntelliJ IDEA 2025.1.4 Build: #IU-251.27812.12. The current build is Build #IU-251.27812.49, built on July 24, 2025. The previous release had an issue related to a plugin that now is fixed. Please install the latest version followin the below steps:
Let me know if this helps.
After following those steps, it still fails with the same error.
The path in step 3 looks like a Linux path though, and I'm using Windows. I deleted the directories I could find, but it still had my registration information and opened my last project after reinstalling, so I missed something.
Hello Hnz8a6v5
The installation files are under
C:/Users/userName/AppData/Local/JetBrains, but Normally the AppData directory is hiden by default. In order for you to be able to access the path I'm sharing the guide below to show hidden files:This will make all files visible and you'll be able to find the AppData directory. Please verify in step 3 that the folder with the version 2025.1 (IntelliJIdea2025.1) is removed before installing again.
Ok, I did all of that, I even deleted the entire Jetbrains folder in C:/Users/userName/AppData/Local/JetBrains, and also in C:/Users/userName/AppData/Roaming/JetBrains.
All the settings reset, so it seems that it was a good clean install.
It still fails with the exact same error as before.
Thanks Hnz8a6v5 for performing all the steps with a clearer route.
I know this took effort and time from you, but now this clean install, please try not performing many tasks and just opening the IDE and collecting new logs, menú Help | Collect Logs and Diagnostic Data. Attach the zip file here or through our safe upload site, https://uploads.jetbrains.com/, and share the uploadID again.
This will help me to have a clearer picture of what is happening in your environment. In previous logs, it wasn't clear, as there were many different problems araising.
New upload ID: 2025_07_30_XzWCV8K45SVu76Hk643FYo (file: idea-logs-20250730-1318421563658633660810358.zip)
Hi Hnz8a6v5 I keep checking your issue, I'll be back as soon as I have finished reviewing the logs.
Hi Hnz8a6v5
After reviewing the logs I found this JVM Exception:
V [jvm.dll+0x761cc5]means there is a fatal error within the JVM related to the DLLs. Causes could be different, but I found in your “Current process environment” a JAVA_HOME registere which is being picked:JAVA_HOME=D:\Java\jdks\openjdk-18.0.2While the IDE runs with Java 21.0.7+9-b895.130, above Java looks like a custom install, so this can be causing the problem. Could you please remove the JAVA_HOME from your path, restart the computer and let me know if after that the IDE keeps crashing when you try to run the Apply code changes?
It has the same problem without JAVA_HOME. It doesn't crash, it's just that Apply Code doesn't work, nor does, “Apply Changes and Restart Activity”. They fail with the error in my first post. There is a missing file/directory.
Hello, could you please reply to the next questions:
It's the same on any drive. I have the same problem on two different computers. It'll take me a day or so to try the new project, but I doubt it's going to make any difference. It looks like the Android plugin is either missing files, misconfigured, or installing incorrectly (4-5 times).
Hi there,
Thanks for the patience and cooperation. I was able to reproduce your issue now. Please confirm if you're using a virtual device to Run/Debug the app?
It looks like the Apply Code Changes functionality is related listed in some file or missing some permission. For now the workaround is to click in the Retry option from the second error message that is shown, this will apply the changes:
I created a new YouTrack ticket to report the bug to the developers, you can follow the updates here IDEA-377055, please upvote it for more visibility.
Yes, it's with a virtual device, though I think it also happened with a real one. I've upvoted the ticket, thank you!