<p dir="auto">Hi,<br>
I'm trying to use glide alongside google vision api. However I am getting the following error when I try and the glide and google vision api dependencies at the same time.</p>
<p dir="auto">Error:Execution failed for task ':app:compileDebugJavaWithJavac'.</p>
<blockquote>
<p dir="auto">java.lang.NoSuchMethodError: com.google.common.collect.FluentIterable.join(Lcom/google/common/base/Joiner;)Ljava/lang/String;</p>
</blockquote>

<p dir="auto"><strong>Glide Version</strong>:<br>
compile 'com.github.bumptech.glide:glide:4.1.1'<br>
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'</p>

<p dir="auto"><strong>Integration libraries</strong>:<br>
compile 'com.google.apis:google-api-services-vision:v1-rev360-1.22.0'</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p>
<p dir="auto">This error occurs on a clean new android studio project if you add the glide and the google vision api dependencies.</p>

<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<p dir="auto">I am trying to get the generated api working.<br>
Using standard Glide.with... works fine but if I add the MyAppGlideModule class thats when the error occurs.</p>
<p dir="auto">I am trying to use GlideApp.... as i want to edit my caching strategies.</p>
<p dir="auto"><strong>Glide Version</strong>: 4.0.0-RC1</p>

<p dir="auto"><strong>Integration libraries</strong>: OkHttp3</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
I'm trying migrate to v4 and got stuck with auto-generated GlideApp.</p>

<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="GlideApp.with..."><pre class="notranslate"><span class="pl-smi">GlideApp</span>.<span class="pl-smi">with</span>...</pre></div>
<p dir="auto"><strong>I'v got a Glide Module class:</strong></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideModule
public final class MyGlideModule extends AppGlideModule {


  @Inject 
  @Named(&quot;GLIDE_CLIENT&quot;)
  protected OkHttpClient client;


    public MyGlideModule() {
        AccountComponent().inject(this);
    }

    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
        builder.setMemoryCache(new LruResourceCache(10 * 1024 * 1024));
    }

    @Override
    public void registerComponents(Context context, Registry glide) {
        glide.replace(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(client));
        glide.register(SVG.class, PictureDrawable.class, new ImageLoadingUtils.SvgDrawableTranscoder())
                .append(InputStream.class, SVG.class, new ImageLoadingUtils.SvgDecoder());
    }

    @Override
    public boolean isManifestParsingEnabled() {
        return false;
    }
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">GlideModule</span>
<span class="pl-k">public</span> <span class="pl-k">final</span> <span class="pl-k">class</span> <span class="pl-smi">MyGlideModule</span> <span class="pl-k">extends</span> <span class="pl-smi">AppGlideModule</span> {


  <span class="pl-c1">@</span><span class="pl-c1">Inject</span> 
  <span class="pl-c1">@</span><span class="pl-c1">Named</span>(<span class="pl-s">"GLIDE_CLIENT"</span>)
  <span class="pl-k">protected</span> <span class="pl-smi">OkHttpClient</span> <span class="pl-s1">client</span>;


    <span class="pl-k">public</span> <span class="pl-smi">MyGlideModule</span>() {
        <span class="pl-en">AccountComponent</span>().<span class="pl-en">inject</span>(<span class="pl-smi">this</span>);
    }

    <span class="pl-c1">@</span><span class="pl-c1">Override</span>
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">applyOptions</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">GlideBuilder</span> <span class="pl-s1">builder</span>) {
        <span class="pl-s1">builder</span>.<span class="pl-en">setMemoryCache</span>(<span class="pl-k">new</span> <span class="pl-smi">LruResourceCache</span>(<span class="pl-c1">10</span> * <span class="pl-c1">1024</span> * <span class="pl-c1">1024</span>));
    }

    <span class="pl-c1">@</span><span class="pl-c1">Override</span>
    <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">registerComponents</span>(<span class="pl-smi">Context</span> <span class="pl-s1">context</span>, <span class="pl-smi">Registry</span> <span class="pl-s1">glide</span>) {
        <span class="pl-s1">glide</span>.<span class="pl-en">replace</span>(<span class="pl-smi">GlideUrl</span>.<span class="pl-k">class</span>, <span class="pl-smi">InputStream</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">OkHttpUrlLoader</span>.<span class="pl-smi">Factory</span>(<span class="pl-s1">client</span>));
        <span class="pl-s1">glide</span>.<span class="pl-en">register</span>(<span class="pl-smi">SVG</span>.<span class="pl-k">class</span>, <span class="pl-smi">PictureDrawable</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">ImageLoadingUtils</span>.<span class="pl-smi">SvgDrawableTranscoder</span>())
                .<span class="pl-en">append</span>(<span class="pl-smi">InputStream</span>.<span class="pl-k">class</span>, <span class="pl-smi">SVG</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">ImageLoadingUtils</span>.<span class="pl-smi">SvgDecoder</span>());
    }

    <span class="pl-c1">@</span><span class="pl-c1">Override</span>
    <span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">isManifestParsingEnabled</span>() {
        <span class="pl-k">return</span> <span class="pl-c1">false</span>;
    }
}</pre></div>
<p dir="auto">In my build.gradle file i have those dependencies</p>
<div class="highlight highlight-source-groovy notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    compile &quot;com.github.bumptech.glide:glide:4.0.0-RC1&quot;
    compile 'com.android.support:support-v4:25.3.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
    compile 'com.caverock:androidsvg:1.2.1'"><pre class="notranslate">    compile <span class="pl-s"><span class="pl-pds">"</span>com.github.bumptech.glide:glide:4.0.0-RC1<span class="pl-pds">"</span></span>
    compile <span class="pl-s"><span class="pl-pds">'</span>com.android.support:support-v4:25.3.1<span class="pl-pds">'</span></span>
    annotationProcessor <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:compiler:4.0.0-RC1<span class="pl-pds">'</span></span>
    compile <span class="pl-s"><span class="pl-pds">'</span>com.caverock:androidsvg:1.2.1<span class="pl-pds">'</span></span></pre></div>

<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Error:(83, 4) error: cannot find symbol variable GlideApp"><pre class="notranslate"><span class="pl-en">Error</span>:<span class="pl-kos">(</span><span class="pl-c1">83</span><span class="pl-kos">,</span> <span class="pl-c1">4</span><span class="pl-kos">)</span> <span class="pl-pds">error</span>: <span class="pl-en">cannot</span> <span class="pl-en">find</span> <span class="pl-en">symbol</span> <span class="pl-en">variable</span> <span class="pl-v">GlideApp</span></pre></div>

<p dir="auto">Also i cloned SVG's samples and there autogeneration works fine. Can Dagger2 conflict with Glide? Or any suggetions, how can i fix it?</p>