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?

0

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!

0

Yes, it's the latest one. It originally installed to that path, so that's what it remains.

0

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.

0

Those steps did not work, how should I share the zip file?

0

Please attach the zip file through our safe upload site https://uploads.jetbrains.com/, and share the uploadID here.

0

Done, ID: 2025_07_24_2N41E98atB9UfWgpqN1YHa

0

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:

  1. Uninstall current IntelliJ IDEA version
  2. Download latest IntelliJ IDEA installer (https://www.jetbrains.com/idea/)
  3. Verify that under "/Users/"userName"/Library/Application Support/JetBrains" there is no directory for the current version
  4. Install IntelliJ IDEA with the latest downloaded installer

Let me know if this helps.

0

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.

0

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:

  1. Go to the Explorer
  2. Click on the “More options” three dots
  3. Select “Settings”
  4. Select tab See
  5. Under “Files & folders” search for “Hiden files & folders”
  6. Select “Show hiden files,  folders and units” and click Accept

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.

0

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.

0

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.

0

New upload ID: 2025_07_30_XzWCV8K45SVu76Hk643FYo (file: idea-logs-20250730-1318421563658633660810358.zip)

0

Hi Hnz8a6v5 I keep checking your issue, I'll be back as soon as I have finished reviewing the logs.

0

Hi Hnz8a6v5 

After reviewing the logs I found this JVM Exception:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbf14b1cc5, pid=16284, tid=6048
#
# JRE version: OpenJDK Runtime Environment JBR-17.0.4.1+7-469.62-jcef (17.0.4.1+7) (build 17.0.4.1+7-b469.62)
# Java VM: OpenJDK 64-Bit Server VM JBR-17.0.4.1+7-469.62-jcef (17.0.4.1+7-b469.62, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x761cc5]

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.2

While 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?

0

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.

0

Hello, could you please reply to the next questions:

  1. What type of run configuration are you using, could you share a screenshot?
  2. Could you reproduce the problem in a simple new project?
  3. Is E drive a virtual/shared/network drive or a physical one?
  4. Could you move the project from E to C or D drive?
0

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).

0

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.

0

Yes, it's with a virtual device, though I think it also happened with a real one. I've upvoted the ticket, thank you!

1

请先登录再写评论。