Android RoboGuice 3.0 nullpointer on toolbar
<p>I made an activity and want to inject my toolbar using Roboguice, but i get <code>Nullpointer</code> exception. Tried some solutions, but they dont work. Here is my progress.</p>

<p><strong>MainActivity.java</strong></p>

<pre><code>@ContentView(R.layout.activity_main)
public class MainActivity extends RoboActionBarActivity {
    @InjectView(R.id.tool_bar)
    Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setSupportActionBar(toolbar);
    }
    }
}
</code></pre>

<p><strong>activity_main.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".activities.MainActivity"&gt;

    &lt;include
        android:id="@+id/tool_bar"
        layout="@layout/tool_bar" /&gt;
    &lt;FrameLayout
        android:layout_below="@+id/tool_bar"
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".activities.MainActivity"
        tools:ignore="MergeRootFrame" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p><strong>Manifest.xml</strong></p>

<pre><code>  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.android.app"&gt;
        &lt;application
            android:name=".application.CustomApplication"
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme"
            tools:replace="android:icon"&gt;
            &lt;meta-data
                android:name="roboguice.annotations.packages"
                android:value="roboguice,databasename" /&gt;
            &lt;activity android:name=".activities.MainActivity"&gt;
                &lt;intent-filter&gt;
                    &lt;action android:name="android.intent.action.MAIN" /&gt;
                    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                &lt;/intent-filter&gt;
            &lt;/activity&gt;
        &lt;/application&gt;
    &lt;/manifest&gt;
</code></pre>

<p><strong>CustomApplication.java</strong></p>

<pre><code>    public class CustomApplication extends Application {
    public void onCreate() {
        super.onCreate();
        RoboGuice.setUseAnnotationDatabases(false);
    }
}
</code></pre>

<p><strong>Module.gradle</strong></p>

<pre><code> compile 'org.roboguice:roboguice:3.+'
 provided 'org.roboguice:roboblender:3.+'
</code></pre>

<p><strong>App.gradle</strong></p>

<pre><code>allprojects {
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs &lt;&lt; "-AguiceAnnotationDatabasePackageName=databasename"
        }
    }
    repositories {
        jcenter()
    }
}
</code></pre>

<p><strong>Logs with error</strong></p>

<pre><code>FATAL EXCEPTION: main
                                                                     Process: com.android.jammboree, PID: 4817
                                                                     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.app/com.android.app.activities.MainActivity}: java.lang.NullPointerException
                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
                                                                         at android.app.ActivityThread.access$800(ActivityThread.java:135)
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                         at android.os.Looper.loop(Looper.java:136)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5001)
                                                                         at java.lang.reflect.Method.invokeNative(Native Method)
                                                                         at java.lang.reflect.Method.invoke(Method.java:515)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
                                                                         at dalvik.system.NativeStart.main(Native Method)
                                                                      Caused by: java.lang.NullPointerException
                                                                         at android.support.v7.widget.ToolbarWidgetWrapper.&lt;init&gt;(ToolbarWidgetWrapper.java:98)
                                                                         at android.support.v7.widget.ToolbarWidgetWrapper.&lt;init&gt;(ToolbarWidgetWrapper.java:91)
                                                                         at android.support.v7.app.ToolbarActionBar.&lt;init&gt;(ToolbarActionBar.java:73)
                                                                         at android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:205)
                                                                         at android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:99)
                                                                         at com.android.jammboree.activities.MainActivity.onCreate(MainActivity.java:24)
                                                                         at android.app.Activity.performCreate(Activity.java:5231)
                                                                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
                                                                         at android.app.ActivityThread.access$800(ActivityThread.java:135) 
                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
                                                                         at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                         at android.os.Looper.loop(Looper.java:136) 
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5001) 
                                                                         at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                         at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
                                                                         at dalvik.system.NativeStart.main(Native Method) 
</code></pre>