update failed java.io.FileNotFoundException

Viewed 3433

i updated my ide to letest version after update i opend project on which i was working before update but it gave error but when i opend other projects there had no error please help Thank you

update failed for AnAction(com.intellij.execution.ExecutorRegistryImpl$ExecutorAction) with ID=Run
java.io.FileNotFoundException: E:\Android\WhatsApp\app\build\intermediates\apk_ide_redirect_file\debug\..\..\apk\debug\output-metadata.json (The system cannot find the file specified)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at java.base/java.io.FileReader.<init>(FileReader.java:75)
4 Answers

just clean project and make a build

It is solved by just rebuild project Build → Rebuild project

Workaround: if you encounter this error generating an APK, first clean the project (Build -> Clean project)

  1. Open your project.
  2. If your project files are not loaded and instead you see: 'Loading...' cancel Sync Gradle by clicking on X at the bottom, this should show your files back.
  3. Clean Project: Build -> Clean Project
  4. Rebuild Project: Build -> Rebuild Project
Related