본문 바로가기
앱 개발 - Android

[Android] libs 디렉토리에 jar 인식 못 하는 오류

by 똑똑한 영장류 2019. 7. 5.

nrftoolbox 빌드했더니, 아래 에러 발생.

AGPBI: {“kind”:”error”,”text”:”File not found: /Volumes/Data/AndroidReferenceApp/Android-nRF-Toolbox-develop/app/../app/libs (Is a directory)”,”sources”:[{“file”:”/Volumes/Data/AndroidReferenceApp/Android-nRF-Toolbox-develop/app/../app/libs”}],”tool”:”D8″}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:app:transformClassesAndResourcesWithR8ForDebug’.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete

이유인즉,

Gradle Plugin 3.3.0 seems to require jar files to be specified in proguard files.

proguard-rules.pro 에
-libraryjars ../app/libs
대신 아래처럼 명시해줘야되는 것 같음.
-libraryjars ../app/libs/achartengine-1.2.0.jar

댓글