1

I use Context.COUNTRY_DETECTOR in my android studio project, it's a hide symbol in android source code, so I add the framework.jar into libs: framework.jar

Module dependencies setting: dependencies setting but it reports cannot resolve symbol error when I click the 'run app' button.

Stele.P
  • 11
  • 2

1 Answers1

1

In order to call hidden methods you need to create your own custom SDK and replace it with the one you use to import all android related methods (you can also use reflection).

My recommendation to you specific case is just use the string value of the constant:

String COUNTRY_DETECTOR = "country_detector"
Community
  • 1
  • 1
Nir Duan
  • 6,164
  • 4
  • 24
  • 38