title: NoSuchMethodError: android.support.v4.view.ViewCompat.isAttachedToWindow
body: <p><strong>Hello you!</strong></p>
  
  <p>I have a problem with v7.AppCombatActivity. It seems that i am to stupid to find the solution, because there are many other postings in www how to fix this, but i can not get it to work. So i think i have to post my problem here to find the solution for my problem.</p>
  
  <p><em>Here the Facts:</em></p>
  
  <p>My App uses a normal fullscreen-Activity as a Splash-Screen in startup-periode, then i start a new Intent with a AppCombatActivity as Login-Screen. On my Nexus5 is works without a Problem (Android 5.1), but on my Galaxy Tab10.1 it crashes (Android 4.2.2).</p>
  
  <pre><code>08-10 11:06:09.530: W/dalvikvm(20561): VFY: unable to resolve static method 5918: Landroid/support/v4/view/ViewCompat;.isAttachedToWindow (Landroid/view/View;)Z
  08-10 11:06:09.530: D/dalvikvm(20561): VFY: replacing opcode 0x71 at 0x0025
  08-10 11:06:09.553: D/AndroidRuntime(20561): Shutting down VM
  08-10 11:06:09.553: W/dalvikvm(20561): threadid=1: thread exiting with uncaught exception (group=0x41874930)
  08-10 11:06:09.561: E/AndroidRuntime(20561): FATAL EXCEPTION: main
  08-10 11:06:09.561: E/AndroidRuntime(20561): java.lang.NoSuchMethodError: android.support.v4.view.ViewCompat.isAttachedToWindow
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:796)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:836)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.parseInclude(LayoutInflater.java:807)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at de.ha.veng.LoginActivity.onCreate(LoginActivity.java:81)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.Activity.performCreate(Activity.java:5104)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2262)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.ActivityThread.access$600(ActivityThread.java:153)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.os.Handler.dispatchMessage(Handler.java:99)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.os.Looper.loop(Looper.java:137)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at android.app.ActivityThread.main(ActivityThread.java:5227)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at java.lang.reflect.Method.invokeNative(Native Method)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at java.lang.reflect.Method.invoke(Method.java:511)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
  08-10 11:06:09.561: E/AndroidRuntime(20561):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Here is my Constalation:
  I have copyed android-support-v7-appcombat to my Workspace and marked as "is Library"
  It contains allready the v4.jar, right ?
  I added this source to the properties of my project.
  Also in my Porject there is a v13 and  i allways get this Warning:</p>
  
  <pre><code>WARNING: Found both android-support-v4 and android-support-v13 in the dependency list.
  Because v13 includes v4, using only v13.
  </code></pre>
  
  <p>Is it possible that the v4 is excluded by build, so that appCombat cant access the v4.ViewCombat ??</p>
  
  <p>Here some pics:</p>
  
  <p>The Workspace</p>
  
  <p><a href="https://i.stack.imgur.com/Lbf8b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lbf8b.png" alt="the Workspace"></a></p>
  
  <p>The V7</p>
  
  <p><a href="https://i.stack.imgur.com/6EucQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EucQ.png" alt="v7 Properties"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ukKOX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ukKOX.png" alt="v7 Build Path"></a></p>
  
  <p><a href="https://i.stack.imgur.com/xkNp2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xkNp2.png" alt="v7 Order an Export"></a></p>
  
  <p>The App</p>
  
  <p><a href="https://i.stack.imgur.com/KkOKw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KkOKw.png" alt="App Properties"></a></p>
  
  <p><a href="https://i.stack.imgur.com/2jcUX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2jcUX.png" alt="App Build Path"></a></p>
  
  <p><a href="https://i.stack.imgur.com/fqJwc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fqJwc.png" alt="App Order an Export"></a></p>
  
  <p>Please help me! Thanks a lot!</p>
  
  <p>Torsten</p>
  
  <p>(I am not a native english speaker)</p>