<p dir="auto">Hello, I'm trying to update from v3 to v4 and am running into an issue where GlideApp is not being generated.</p>
<p dir="auto">I have followed the instructions located here <a href="http://bumptech.github.io/glide/doc/configuration.html" rel="nofollow">http://bumptech.github.io/glide/doc/configuration.html</a> and confirmed with a coworker that my implementation looks correct. We only have one AppGlideModule, I did override manifest parsing and return false, and my glide module is in Java (I originally had it in kotlin but <code class="notranslate">kapt</code> was giving me trouble, so I'm just using <code class="notranslate">annotationProcessor</code> instead and converted the file to Java. It's a very simple module as follows:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideModule
public class MyGlideModule extends AppGlideModule {

    @Inject
    @Named(DEFAULT)
    OkHttpClient client;

    public MyGlideModule() {
        MyApplication.getNetworkComponent().inject(this);
    }

    @Override
    public boolean isManifestParsingEnabled() {
        return false;
    }

    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
        super.applyOptions(context, builder);
        builder.setDefaultRequestOptions(
                new RequestOptions().format(DecodeFormat.PREFER_ARGB_8888)
        );
    }

    @Override
    public void registerComponents(Context context, Glide glide, Registry registry) {
        super.registerComponents(context, glide, registry);
        registry.replace(
                GlideUrl.class,
                InputStream.class,
                new OkHttpProgressUrlLoader.Factory(client)
        );
    }

}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">GlideModule</span>
<span class="pl-k">public</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-c1">DEFAULT</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-smi">MyApplication</span>.<span class="pl-en">getNetworkComponent</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">boolean</span> <span class="pl-en">isManifestParsingEnabled</span>() {
        <span class="pl-k">return</span> <span class="pl-c1">false</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-en">super</span>.<span class="pl-en">applyOptions</span>(<span class="pl-s1">context</span>, <span class="pl-s1">builder</span>);
        <span class="pl-s1">builder</span>.<span class="pl-en">setDefaultRequestOptions</span>(
                <span class="pl-k">new</span> <span class="pl-smi">RequestOptions</span>().<span class="pl-en">format</span>(<span class="pl-smi">DecodeFormat</span>.<span class="pl-c1">PREFER_ARGB_8888</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">Glide</span> <span class="pl-s1">glide</span>, <span class="pl-smi">Registry</span> <span class="pl-s1">registry</span>) {
        <span class="pl-en">super</span>.<span class="pl-en">registerComponents</span>(<span class="pl-s1">context</span>, <span class="pl-s1">glide</span>, <span class="pl-s1">registry</span>);
        <span class="pl-s1">registry</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">OkHttpProgressUrlLoader</span>.<span class="pl-smi">Factory</span>(<span class="pl-s1">client</span>)
        );
    }

}</pre></div>
<p dir="auto">I don't see any errors pertaining to Glide and I can fully build (clean + build too) but I don't have any generated GlideApp and thus, my module is not being used to replace one of the components as you can see.</p>

<p dir="auto"><strong>Glide Version</strong>: 4.0.0</p>

<p dir="auto"><strong>Integration libraries</strong>: glide-okhttp3-integration-4.0.0</p>

<p dir="auto"><strong>Device/Android Version</strong>: N/A</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>: Noted Above</p>
<p dir="auto">I was able to generate a GlideApp in a small sample project so I'm curious if anyone has any guesses as to why it's not working in a larger project.</p>
<p dir="auto">I'm trying to use glide 4.0.0-RC0 by Gradle:</p>
<div class="highlight highlight-source-groovy-gradle notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.caverock:androidsvg:1.2.2-beta-1'
    compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
    compile 'com.android.support:support-v4:25.3.1'
}"><pre class="notranslate"><span class="pl-en">dependencies</span> {
    compile <span class="pl-s"><span class="pl-pds">'</span>com.android.support:appcompat-v7:25.1.0<span class="pl-pds">'</span></span>
    compile <span class="pl-s"><span class="pl-pds">'</span>com.caverock:androidsvg:1.2.2-beta-1<span class="pl-pds">'</span></span>
    compile <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:4.0.0-RC0<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>
}</pre></div>
<p dir="auto">I followed the example here: <a href="https://github.com/bumptech/glide/tree/master/samples/svg/src/main/java/com/bumptech/glide/samples/svg">https://github.com/bumptech/glide/tree/master/samples/svg/src/main/java/com/bumptech/glide/samples/svg</a><br>
but after add glide by Gradle, I got error: <strong>Cannot resolve symbol 'GlideApp'</strong><br>
My source:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package com.example.quangson.glidesvg;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import static com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions.withCrossFade;

import android.content.ContentResolver;
import android.graphics.drawable.PictureDrawable;
import android.net.Uri;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bumptech.glide.RequestBuilder;
import com.example.quangson.glidesvg.glide.SvgSoftwareLayerSetter;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = &quot;SVGActivity&quot;;

    private ImageView imageViewRes;
    private ImageView imageViewNet;
    private RequestBuilder&lt;PictureDrawablerequestBuilder;
    LinearLayout ll;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        imageViewNet = (ImageView) findViewById(R.id.svg_image_view2);

        requestBuilder = GlideApp.with(this)
                .as(PictureDrawable.class)
                .placeholder(R.drawable.image_loading)
                .error(R.drawable.image_error)
                .transition(withCrossFade())
                .listener(new SvgSoftwareLayerSetter());

        Uri uri = Uri.parse(&quot;http://www.clker.com/cliparts/u/Z/2/b/a/6/android-toy-h.svg&quot;);
        requestBuilder.load(uri).into(imageViewNet);
    }
}"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">com</span>.<span class="pl-s1">example</span>.<span class="pl-s1">quangson</span>.<span class="pl-s1">glidesvg</span>;

<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">support</span>.<span class="pl-s1">v7</span>.<span class="pl-s1">app</span>.<span class="pl-s1">AppCompatActivity</span>;
<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">os</span>.<span class="pl-s1">Bundle</span>;
<span class="pl-k">import</span> <span class="pl-k">static</span> <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">load</span>.<span class="pl-s1">resource</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">DrawableTransitionOptions</span>.<span class="pl-s1">withCrossFade</span>;

<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">content</span>.<span class="pl-s1">ContentResolver</span>;
<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">graphics</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">PictureDrawable</span>;
<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">net</span>.<span class="pl-s1">Uri</span>;
<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">widget</span>.<span class="pl-s1">ImageView</span>;
<span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">widget</span>.<span class="pl-s1">LinearLayout</span>;

<span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">RequestBuilder</span>;
<span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">example</span>.<span class="pl-s1">quangson</span>.<span class="pl-s1">glidesvg</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">SvgSoftwareLayerSetter</span>;

<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">MainActivity</span> <span class="pl-k">extends</span> <span class="pl-smi">AppCompatActivity</span> {

    <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-c1">TAG</span> = <span class="pl-s">"SVGActivity"</span>;

    <span class="pl-k">private</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">imageViewRes</span>;
    <span class="pl-k">private</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">imageViewNet</span>;
    <span class="pl-k">private</span> <span class="pl-s1">RequestBuilder</span>&lt;<span class="pl-smi">PictureDrawablerequestBuilder</span>;
    <span class="pl-smi">LinearLayout</span> <span class="pl-s1">ll</span>;

    <span class="pl-c1">@</span><span class="pl-c1">Override</span>
    <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">onCreate</span>(<span class="pl-smi">Bundle</span> <span class="pl-s1">savedInstanceState</span>) {
        <span class="pl-en">super</span>.<span class="pl-en">onCreate</span>(<span class="pl-s1">savedInstanceState</span>);
        <span class="pl-en">setContentView</span>(<span class="pl-smi">R</span>.<span class="pl-s1">layout</span>.<span class="pl-s1">activity_main</span>);

        <span class="pl-s1">imageViewNet</span> = (<span class="pl-smi">ImageView</span>) <span class="pl-en">findViewById</span>(<span class="pl-smi">R</span>.<span class="pl-s1">id</span>.<span class="pl-s1">svg_image_view2</span>);

        <span class="pl-s1">requestBuilder</span> = <span class="pl-smi">GlideApp</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>)
                .<span class="pl-en">as</span>(<span class="pl-smi">PictureDrawable</span>.<span class="pl-k">class</span>)
                .<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">image_loading</span>)
                .<span class="pl-en">error</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">image_error</span>)
                .<span class="pl-en">transition</span>(<span class="pl-en">withCrossFade</span>())
                .<span class="pl-en">listener</span>(<span class="pl-k">new</span> <span class="pl-smi">SvgSoftwareLayerSetter</span>());

        <span class="pl-smi">Uri</span> <span class="pl-s1">uri</span> = <span class="pl-smi">Uri</span>.<span class="pl-en">parse</span>(<span class="pl-s">"http://www.clker.com/cliparts/u/Z/2/b/a/6/android-toy-h.svg"</span>);
        <span class="pl-s1">requestBuilder</span>.<span class="pl-en">load</span>(<span class="pl-s1">uri</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageViewNet</span>);
    }
}</pre></div>
<p dir="auto">Please help</p>