Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add new activity to existing project in Android Studio - "Project not ready"

What needs to be done to add a new activity to existing project that works and compiles but has "Project not ready" in the menu. Please see the picture.

Other than that all works, so I don't know what IDE means by "Project not ready"

project not ready menu sample

like image 797
Pawel Cioch Avatar asked Oct 31 '22 08:10

Pawel Cioch


2 Answers

This is a little bit over a year but i thought i would provide an answer for anyone (novice like me) who may encounter the same problem. I had the exact same problem as depicted and denoted. It was fixed by

  • Cleaning the project (Build --> Clean Project)
  • Sync with Gradle ( Tools --> Android --> Sync project with Gradle files)
like image 123
h8MyJob Avatar answered Nov 15 '22 05:11

h8MyJob


What I did to solve this was to open up specifically the Android project in a new Android studio instance (not from the flutter project, which has everything)

Note if you don't see the option to do this in your project -> flutter options
enter image description here

Then you can just open the folder containing the project, followed by opening up the Android project specifically from there.

Now you should get the options enter image description here

like image 25
cfl Avatar answered Nov 15 '22 05:11

cfl