0

I'm trying without success to import this import com.google.gson.Gson in one gradle file I've created just to manage some tasks. I'm able to import this Gson in other parts of the app, it is only here where I'm having issues.

In my gradle.app I have

enter image description here

I also tried an answer from Importing GSON using gradle, but when I open the menu nothing appears.

What could I be doing wrong?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Nicote Ool
  • 121
  • 8
  • 1
    did you just set up the gradle file? are there other things in that file that are correctly importing? if you just set up the gradle file make sure it's in your settings.gradle file – Rafa Oct 17 '22 at 21:47
  • @Rafa, i´m not sure what you mean. I just created a new .gradle file and add it the code. The task works without the json part. Do you have some documentation I could check ? – Nicote Ool Oct 18 '22 at 11:55
  • within your project you should have a settings.gradle file. This is the list of gradle files that the project is going to pick up. If you added a gradle.build file in your project but didn't add it into the settings.gradle file, it won't run any tasks for it. I think this might be the best documentation for what I'm talking about. https://docs.gradle.org/current/samples/sample_building_kotlin_applications_multi_project.html#review_the_project_files I'm just covering some of the bases, but if you're not sure, double check that :) – Rafa Oct 18 '22 at 19:16

0 Answers0