Right click it and hit 'Add as library'Įnsure that compile files('libs/gson-2.2.4.jar') is in your adle file (or compile fileTree(dir: 'libs', include: '*.jar') if you are using many jar files)Įdit : Use implementation files('libs/gson-2.2.4.jar') (or implementation fileTree(dir: 'libs', include: '*.jar')) in Android Studio 3.0+ĭo a clean build (you can probably do this fine in Android Studio, but to make sure I navigated in a terminal to the root folder of my app and typed gradlew clean.Put the Gson jar (in my case, gson-2.2.4.jar) into the libs folder. ![]() ![]() I finally cracked it – here are the steps I took: I've been struggling with the same thing for many hours, trying to get the Gson jar to work no less.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |