나는이 질문이 여러 번 요청되었으며 대부분의 답변을 따랐지만 그 중 어느 것도 나를 도왔습니다. 그래서 이것이 내 문제입니다. 프로젝트를 동기화 할 때마다 항상 실패합니다. 다음은 Gradle 콘솔의 모습입니다.
작업 실행 : [: app : generateDebugSources, : app : generateDebugAndroidTestSources, : app : mockableAndroidJar, : app : prepareDebugUnitTestDependencies]
주문형 구성은 인큐베이팅 기능입니다. 증분 자바 컴파일은 인큐베이팅 기능입니다. : app : preBuild UP-TO-DATE : app : preDebugBuild UP-TO-DATE : 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 UP-TOLibraryUiSupport-Library2420SupportreCom : TO-DATE : app : prepareComAndroidSupportSupportFragment2420Library 최신 날짜 : app :
문제 : java.lang.NullPointerException (오류 메시지 없음)
시도 : --stacktrace 옵션으로 실행하여 스택 추적을 가져옵니다. 더 많은 로그 출력을 얻으려면 --info 또는 --debug 옵션과 함께 실행하십시오.
빌드 실패
총 시간 : 7.518 초
그리고 이것들은 내 의존성입니다.
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'
문제를 해결하는 방법?