Closed Bug 1359262 Opened 7 years ago Closed 7 years ago

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

Categories

(Core Graveyard :: Embedding: APIs, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: snorp, Unassigned)

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
Closed: 7 years ago
Flags: needinfo?(snorp)
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.