简体   繁体   中英

Execution failed for task ':app:processDebugMainManifest' after upgrading Android Studio to Electric Eel

After updating Android Studio to Electric Eel I cannot launch my application with following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @3c3bc30a

and this is return from flutter doctor

[!] Android Studio (version 2022.1)
    X Unable to find bundled Java version.

Colleague of mine working on the same files, just on Visual Studio is not having any problem. How to fix it?

Try to Clear and Invalidate Caches在此处输入图像描述

My solution was to download older version of Android Studio(last Dolphin version in my case).

After that everything worked like it used to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM