마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

app:javaPreCompileDebug 앱 실행이 안됩니다.

0 추천
안녕하세요. 안드로이드 초보 개발자입니다.

 

학원에서 배운 소스를 사용해볼려고 집에서 실행하는 도중 이런 에러가 뜨면서 앱 실행이 되질 않습니다.

 

Error:Execution failed for task ':app:javaPreCompileDebug'.
> Annotation processors must be explicitly declared now.  The following dependencies on the compile classpath are found to contain annotation processor.  Please add them to the annotationProcessor configuration.
    - realm-android-0.87.1.jar (io.realm:realm-android:0.87.1)
  Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior.  Note that this option is deprecated and will be removed in the future.
  See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

 

build.gradle 에  컴파일한 realm-android-0.87.1 을 지우면 실행은 되지만 동작은 되지 않습니다

고수님들 답변 부탁드리겠습니다. 감사합니다.
익명사용자 님이 2017년 11월 9일 질문

1개의 답변

0 추천
Android Studio 3.0 사용하시나요?

build.gradle에 annotationProcessor를 넣어야 동작할수 있습니다.

annotationProcessor 'io.realm:realm-android:0.87.1'
회색 (21,340 포인트) 님이 2017년 11월 9일 답변
답변을 늦게 확인해서 죄송합니다.

문제를 확인해보던 도중 다른 컴퓨터에선 정상작동 하여 문제가 해결되었습니다.

답변에 올려주신 문제도 검토해보도록 하겠습니다.

답변 달아주셔서 감사합니다.
...