görev

2016-10-03 36 views
6
Error:Could not determine the dependencies of task :app:transformClassesWithInstantRunForDebug. 

bağımlılıkları belirlenemedi, sen nasıl bu hatayı gidermek do SDK'nızagörev

yılında platformu 17 yüklemelisiniz?

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.2" 

    defaultConfig { 
     applicationId "com.google.firebase.quickstart.fcm" 
     minSdkVersion 9 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 

     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 

    buildTypes { 
     release { 
      minifyEnabled true 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 

    packagingOptions { 
     exclude 'LICENSE.txt' 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:24.2.1' 


    compile 'com.google.firebase:firebase-messaging:9.6.1' 

    // Testing dependencies 
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2' 
    androidTestCompile 'com.android.support.test:runner:0.5' 
    androidTestCompile 'com.android.support:support-annotations:24.2.1' 
} 

apply plugin: 'com.google.gms.google-services' 

cevap

0

Aynı problem vardı. IntelliJ IDEA, adb sunucusunu yeniden başlatarak ve akıllı telefonumu tekrar ekleyerek yeniden çözdüm.

0
  1. gidin Android Studio -> Tercihler (MacOS)/Ayarlar (Windows) -> Görünüm & Davranış -> Sistem Ayarları -> Android SDK -> SDK Platformları.
  2. Android 4.2 (Jelly Bean) öğesini işaretleyin.
  3. Uygula düğmesine basın.
İlgili konular