简体   繁体   中英

Android Studio doesn't want to open project (macOS)

Android Studio 3.4.2 can't open project on macOS 10.15 Beta (19A526h)

Open Android Studio -> press Open an existing Android Studio project -> select folder with project -> NOTHING happens

I can create new project though, but can't open existing one.

Is there anything i missing here? Any help is appreciated.

I have met the same problem. It works by dragging folder onto AndroidStudio directly.

I made it easier to open projects with Finder by associating all settings.gradle files with Android Studio and then launching that file to open a project. (I'm on Android Studio 4.2.2)

I find that Android Studio's behavior with launching project files is inconsistent. If you don't have any project open and you launch a project's gradle.properties file with Android Studio, then it will open the whole project, BUT if you do this when another project is open then it will just open the gradle.properties text file in the already open project! However, for some reason this issue is avoided with settings.gradle -- it always opens the whole project even if another project is already open.

This problem occurs with macbook M1 macOS monterey. I solved this by,

  1. Open Settings in Android Studio
  2. Select Edit Custom VM options..
  3. Add this line to it: -Dide.mac.file.chooser.native=false
  4. Restart Android Studio

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