2017-12-27 65 views
1

내가, 단검-2와 grpc를 사용하는 자바 프로젝트를 찾을 수 없음 dagger-2 의존성 내부에 제공되었거나 클래스 경로에 대한 종속성을 제공해야합니까?MoreTypes 클래스는 내가 내가 다음과 같은 오류가 ./gradlew 빌드를 사용하여 빌드 할 때

이 gradle.build 파일 내용의 관련 부분입니다 :

plugins { 
    id "net.ltgt.apt" version "0.10" 
    id "com.google.protobuf" version "0.8.1" 
    id "java" 
} 

dependencies { 
    compile 'io.grpc:grpc-all:1.5.0' 

    compile 'com.google.dagger:dagger:2.14' 
    apt 'com.google.dagger:dagger-compiler:2.14' 

    testApt 'com.google.dagger:dagger-compiler:2.14' 

    } 



apply plugin: 'java' 

sourceCompatibility = 1.8 
targetCompatibility = 1.8 

답변

3

이 2.14.1에서 수정 된 단검 2.14의 문제입니다. "단검 2.14 나누기 구축", issue 994 참조 :

I have not isolated the issue to a small sample project at this point, but a possible cause I see is below, maybe that gives a pointer. I don't have any explicit dependency on Google Auto libs in that part of the build.

java.lang.NoClassDefFoundError: com/google/auto/common/MoreTypes 

확정 this commit를 포함하는, 2.14.1에 고정.