0

I'm trying to get Geckoview setup in my android app. I am following the tutorial here but I get an error that it doesn't exist. Is anyone familar with Geckoview who can help me out? Did it move or something?

Here is the error I get

Could not find org.mozilla.geckoview:geckoview-nightly:97.0.20211210143634. Required by: project :app

Ive followed the instructions and have

    implementation "org.mozilla.geckoview:geckoview-${geckoview_channel}:${geckoview_version}"

With the most recent version pulled from; https://maven.mozilla.org/maven2?prefix=maven2/org/mozilla/geckoview/

Any help would be appreciated :)

alexward1230
  • 579
  • 3
  • 8
  • 25

1 Answers1

3

I searched in the maven find the version you use. Geckoview has three release channels: Stable, Beta, and Nightly. I strongly recommend you use the Stable not Nightly. it is not statle channel.

you can open the geckoview in the link you desc, it show all the version it has. or you can directly open this geckoview version.

I think you problem is you don not add the maven responsitory in the root project.

repositories {
    maven {
        url "https://maven.mozilla.org/maven2/"
    }
 } 

you can try add it to rebuild again

Lenoarod
  • 3,441
  • 14
  • 25
  • 2
    Aha! So the issue was I added the above line to my application build.gradle instead of my settings.gradle. After changing that it works! Thanks for catching that was likely the root cause. Also, I switched to the non nightly build. So: `implementation "org.mozilla.geckoview:geckoview:95.0.20211129150630"` is working for me now – alexward1230 Dec 11 '21 at 20:06
  • That ^ build is the "stable" build now right? – alexward1230 Dec 11 '21 at 20:07
  • 1
    Yes, the `:geckoview` build is the stable one. – Agi Sferro Feb 24 '22 at 16:24