Herkese Selamlar
Bugün bütün gün üstünde çalıştığım projeyi bu akşam tekrar açmaya çalışınca hata verdi. Yeni bir layout oluşturdum oraya button vs. ne sürüklesem form üzerinde gözükmüyor ama ekleniyor. Build ettiğimde hata yok emülatörde gözüküyor. Ne yaptıysam çözemedim sorunu. Googleden ne diye aratacağımı bilemediğimden ayrıntıları burdan paylaşıyorum. Bilen biri yardımcı olursa çok makbule geçer.

Gradle Dosyam
   compile 'com.google.android.gms:play-services-gcm:11.0.4'
    compile 'com.google.android.gms:play-services-location:11.0.4'
    //  compile 'com.onesignal:OneSignal:[3.5.8, 3.99.99]'
    compile 'com.google.android.gms:play-services:11.0.4'
    compile 'com.google.android.gms:play-services-ads:11.0.4'
    compile 'com.google.firebase:firebase-core:11.0.4'
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:design:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
appcombat kütüphanesinin altı çizili üzerine gelince şöyle bir hata açıklaması yazıyor.
Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (com.android.support:design:26.+) less... (Ctrl+F1)
Using + in dependencies lets you automatically pick up the latest available version rather than a specific, named version. However, this is not recommended; your builds are not repeatable; you may have tested with a slightly different version than what the build server used. (Using a dynamic version as the major version number is more problematic than using it in the minor version position.)


Bu Hatadan anladığım kadarı ile kütüphanenin tam sürümünü yazın diyor. Son sürümü bulup onları ekledim.

Aldığım Hata
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 26.0.0-alpha1, 25.2.0. Examples include com.android.support:animated-vector-drawable:26.0.0-alpha1 and com.android.support:mediarouter-v7:25.2.0 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)


com.android.support:mediarouter-v7:25.2.0 kütüphanesi yüzünden oluyor galiba. Fakat gradlede böyle bir kütüphane yok.

Son olarak xml Görülen hata

The following classes could not be instantiated:
-*android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache)
-*android.support.v7.widget.Toolbar (Open Class, Show Exception, Clear Cache)
-*android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
-*android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
 Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.  If this is an unexpected error you can also try to build the project, then manually refresh the layout.  Exception Details java.lang.NoSuchMethodError: android.support.v4.view.ViewCompat.setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V **at android.support.v7.widget.ActionBarContainer.<init>(ActionBarContainer.java:64) **at java.lang.reflect.Constructor.newInstance(Constructor.java:423) **at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) **at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858) **at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) **at android.view.LayoutInflater.rInflate(LayoutInflater.java:834) **at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) **at android.view.LayoutInflater.inflate(LayoutInflater.java:518) **at android.view.LayoutInflater.inflate(LayoutInflater.java:426) **at com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:84) **at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:59) **at com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:241) **at com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:153) Copy stack to clipboard
2 saattir bir çözüm bulamadım. yardımcı olacak arkadaşlara şimdiden teşekkürler.