java.lang.NullPointerException (pas de message d'erreur)

Je sais que cette question de la mine a été demandé de nombreuses fois et j'ai fait de suivre la plupart des réponses, mais aucun de ceux qui m'ont aidé. Donc c'est mon problème, chaque fois que je synchroniser mon projet, il échoue toujours. Voici comment le gradle console de ressembler à:

De l'exécution des tâches: [:app:generateDebugSources,
:app:generateDebugAndroidTestSources, :app:mockableAndroidJar,
:app:prepareDebugUnitTestDependencies]

De Configuration à la demande est une fonction de l'incubation. Différentiels java
la compilation est une incubation de fonctionnalité. :application:pré-créer UP-to-DATE
:app:preDebugBuild À JOUR :app:checkDebugManifest
:app:preReleaseBuild UP-to-DATE
:app:prepareComAndroidSupportAnimatedvectordrawable2420library
UP-to-DATE :app:prepareComAndroidSupportAppcompatv72420library
UP-to-DATE :app:prepareComAndroidSupportDesign2420library UP-to-DATE
:app:prepareComAndroidSupportMediarouterv72300library UP-to-DATE
:app:prepareComAndroidSupportRecyclerviewv72420library UP-to-DATE
:app:prepareComAndroidSupportSupportCompat2420library UP-to-DATE
:app:prepareComAndroidSupportSupportCoreui2420library UP-to-DATE
:app:prepareComAndroidSupportSupportCoreutils2420library UP-to-DATE
:app:prepareComAndroidSupportSupportFragment2420library UP-to-DATE
:app:prepareComAndroidSupportSupportMediacompat2420library UP-to-DATE
:app:prepareComAndroidSupportSupportV42420library UP-to-DATE
:app:prepareComAndroidSupportSupportVectordrawable2420library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServices940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesads940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesadslite940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesanalytics940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesanalyticsimpl940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesappindexing940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesappinvite940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesauth940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesauthbase940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesbase940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesbasement940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicescast940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicescastframework940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesclearcut940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicescontextmanager940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesdrive940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesfitness940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesgames940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesgass940library
UP-to-DATE :app:prepareComGoogleAndroidGmsPlayServicesgcm940library
UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesidentity940library ÉCHEC:
Construire a échoué avec une exception.

  • Ce qui s'est passé: java.lang.NullPointerException (pas de message d'erreur)

  • Essayer: Exécuter avec --stacktrace option pour obtenir la trace de la pile. Courir avec --info ou de l'option --debug pour obtenir plus de la sortie du journal.

BUILD FAILED

Temps Total: 7.518 secs

ET ce sont mes dépendances

dependencies {
   compile fileTree(dir: 'libs', include: ['*.jar'])

    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:24.2.0'
    compile 'com.android.support:design:24.2.0'
    compile 'com.google.android.gms:play-services:9.4.0'
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services-location:9.4.0'
    compile 'com.google.android.gms:play-services-appindexing:9.4.0'
    compile 'com.google.firebase:firebase-messaging:9.2.0'
    compile 'com.google.firebase:firebase-database:9.0.2'
    compile 'com.firebase:firebase-client-android:2.4.0'
    compile 'com.google.firebase:firebase-core:9.4.0'
}

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

Comment résoudre le problème?

  • J'ai eu le même problème tout à l'heure. Build -> Nettoyage de Projet, puis exécutez à nouveau fonctionné pour moi.
  • quelques fois Android Studio de ne pas identifier les erreurs de ce type. 1.erreur sintaxis, 2.les ressources ne trouve pas, 3.les changements dans le code.. et les autres.. Mon cas, les modifications ne trouve pas..
  • prendre un coup d'oeil ici, le problème est probablement avec gradle.les propriétés.
  • Chaque fois que j'ai mise à jour d'Android Studio, bizarre que ce genre de choses arrive. w3bshark propre build a fonctionné pour moi.