Ai2 must be run using an Internet connection.
There are work around solutions using third part software that allow AI2 to be used to compile apps without a connection.
It is possible to use what is called a personal server offline without an I internet connection to develop your AI apps
A third party App Inventor 2 server might be a solution to your issues Arlene. There are free versions and subscription versions .
Regards,
Steve