[geckoview] Android Studio does not (cannot?) index GeckoView

RESOLVED INVALID

Status

()

RESOLVED INVALID
a year ago
a year ago

People

(Reporter: snorp, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

When I working on GeckoView support in Focus, Studio was unable to resolve any types in the geckoview AAR. This made using it pretty annoying, since it thought all of the lines that used GV contained errors.
Oh, this isn't in the main Firefox repository?  That explains some things.  Looking at https://github.com/mozilla-mobile/focus-android/blob/master/app/build.gradle#L113, I would guess that you're viewing the code in Android Studio but you haven't set the configuration to be the Gecko one, so the GeckoView library (the part that's specific to the "Gecko" configuration, see `geckoCompile`) isn't recognized.  Follow https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build#Setting_the_RunDebug_Configuration_and_Build_Variant to set the configuration/build variant and you should find AS recognizes the GV library.
Flags: needinfo?(snorp)
It turns out I had just screwed up the build.gradle in Focus. Sebastian fixed that and it's fine now. Closing!
Status: NEW → RESOLVED
Last Resolved: a year ago
Flags: needinfo?(snorp)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.