android Studio UI element can’t work offline?

i’m new to Android Studio,i’m using android studio version 4 each time i create a new project it ask’s me to download UI elements like CardView,GridLayout…here in my area internet connection is too slow and i’m trying to use android studio offline.i’m able to download the elements for single project but not for all.
really needs your help guys.