ResourceNotFoundException when using greendroid android
<p>Good day, I am using the greendroid library to add an actionbar feature into my app. Now for some reason, i get a ResourceNotFoundException error when trying to inflate a particular layout. but if i remove green droid and just use normal activity, it works. Any one have any idea please? Thank you</p>

<p>this is the Layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout 
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:background="#101319"&gt;


&lt;RelativeLayout    
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"    
        android:text="@string/From:"
        android:textStyle="bold"
        android:id="@+id/from_text_id"
        android:padding="12dp"&gt;
    &lt;/TextView&gt; 


    &lt;Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/from_text_id"
        android:layout_marginTop="10dp"
        android:paddingTop="2dp"
        android:layout_weight="0.1"
        android:text="@string/myLocation"
        android:id="@+id/myLocationId"&gt;
    &lt;/Button&gt;

        &lt;EditText
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/myLocationId"
            android:layout_alignLeft="@id/myLocationId"
            android:hint="@string/enter_current_location"
            android:id="@+id/typeLocationId"&gt;
        &lt;/EditText&gt; 

   &lt;View 
       android:id="@+id/view1_id"
       android:layout_height="1dp"
       android:layout_width="0dp"
       android:layout_marginTop="20dp"
       android:background="#FF909090"/&gt; 

  &lt;TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/typeLocationId"
            android:text="@string/Location"
            android:textSize="12sp"
            android:clickable="true"
            android:padding="20dp"
            android:gravity="center_vertical"
            android:id="@+id/startLocationId"
            android:focusable="true"
            android:background="@drawable/newitem_background"&gt;
    &lt;/TextView&gt;

     &lt;View 
       android:id="@+id/view2"
       android:layout_height="1dp"
       android:layout_width="0dp"
       android:paddingTop="40dp"
       android:background="#FF909090" /&gt;

       &lt;RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:id="@+id/layoutId"
        android:layout_below="@id/startLocationId"
        android:padding="20dp"
        android:paddingTop="10dp"
        android:layout_marginTop="20dp"
        android:background="@drawable/newitem_background"&gt;

         &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/TO:"
            android:textStyle="bold"
            android:id="@+id/to_label_id"&gt;
        &lt;/TextView&gt;

            &lt;TextView 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/to_label_id"
            android:layout_marginLeft="5dp"
            android:text="@string/Location1"
            android:textSize="12sp"
            android:clickable="true"
            android:id="@+id/destLocationId"
            android:focusable="true"&gt;
            &lt;/TextView&gt;

     &lt;View 
        android:id="@+id/view3"
        android:layout_height="1dp"
        android:layout_width="0dp"
        android:background="#FF909090"/&gt;

      &lt;/RelativeLayout&gt;

        &lt;Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:layout_below="@id/layoutId"
        android:text="@string/getDirection"
        android:id="@+id/getDirectionId"
        android:gravity="center"&gt;
    &lt;/Button&gt;

&lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="bottom"&gt;

&lt;com.google.ads.AdView 
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="xxxxxxxxxxx"
ads:adSize="BANNER"
ads:loadAdOnCreate="true"/&gt;

&lt;/LinearLayout&gt;

&lt;/RelativeLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>and this is my logcat message:</p>

<pre><code>03-30 14:18:34.667: E/AndroidRuntime(554): Uncaught handler: thread main exiting due to uncaught exception
03-30 14:18:34.707: E/AndroidRuntime(554): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.MyProject.Taap/com.MyProject.Taap.LocationViewer}: android.view.InflateException: Binary XML file line #27: Error inflating class &lt;unknown&gt;
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.os.Handler.dispatchMessage(Handler.java:99)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.os.Looper.loop(Looper.java:123)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread.main(ActivityThread.java:4363)
03-30 14:18:34.707: E/AndroidRuntime(554):  at java.lang.reflect.Method.invokeNative(Native Method)
03-30 14:18:34.707: E/AndroidRuntime(554):  at java.lang.reflect.Method.invoke(Method.java:521)
03-30 14:18:34.707: E/AndroidRuntime(554):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-30 14:18:34.707: E/AndroidRuntime(554):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-30 14:18:34.707: E/AndroidRuntime(554):  at dalvik.system.NativeStart.main(Native Method)

03-30 14:18:34.707: E/AndroidRuntime(554): Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class &lt;unknown&gt;
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.createView(LayoutInflater.java:513)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-30 14:18:34.707: E/AndroidRuntime(554):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.Activity.setContentView(Activity.java:1622)
03-30 14:18:34.707: E/AndroidRuntime(554):  at greendroid.app.GDActivity.ensureLayout(GDActivity.java:187)
03-30 14:18:34.707: E/AndroidRuntime(554):  at greendroid.app.GDActivity.getContentView(GDActivity.java:286)
03-30 14:18:34.707: E/AndroidRuntime(554):  at greendroid.app.GDActivity.setActionBarContentView(GDActivity.java:305)
03-30 14:18:34.707: E/AndroidRuntime(554):  at com.MyProject.Taap.LocationViewer.onCreate(LocationViewer.java:133)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
03-30 14:18:34.707: E/AndroidRuntime(554):  ... 11 more

03-30 14:18:34.707: E/AndroidRuntime(554): Caused by: java.lang.reflect.InvocationTargetException
03-30 14:18:34.707: E/AndroidRuntime(554):  at greendroid.widget.ActionBar.&lt;init&gt;(ActionBar.java:130)
03-30 14:18:34.707: E/AndroidRuntime(554):  at java.lang.reflect.Constructor.constructNative(Native Method)
03-30 14:18:34.707: E/AndroidRuntime(554):  at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.LayoutInflater.createView(LayoutInflater.java:500)
03-30 14:18:34.707: E/AndroidRuntime(554):  ... 24 more

03-30 14:18:34.707: E/AndroidRuntime(554): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f01002a a=-1}
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.content.res.Resources.loadDrawable(Resources.java:1677)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.View.&lt;init&gt;(View.java:1850)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.View.&lt;init&gt;(View.java:1799)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.view.ViewGroup.&lt;init&gt;(ViewGroup.java:284)
03-30 14:18:34.707: E/AndroidRuntime(554):  at android.widget.LinearLayout.&lt;init&gt;(LinearLayout.java:92)
03-30 14:18:34.707: E/AndroidRuntime(554):  at greendroid.widget.ActionBar.&lt;init&gt;(ActionBar.java:134)
03-30 14:18:34.707: E/AndroidRuntime(554):  ... 28 more
</code></pre>
