记录직접 로컬 .aar 파일 종속성은 AAR을 빌드할 때 지원되지 않습니다.

견적: implementation files("lib/libs-release.aar")
빌드 실패:

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :ui project caused this error: G:\TESTNewCode\TestApp\ui\lib\libs-release.aar

개정하다:

 implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')

이러한 의존성 문제는 환경 버전의 변경으로 인해 발생해야 하며, 오류 설명에 따르면 이전의 직접 의존성 방식은 aar 파일을 파괴하며 상위 버전 이후에는 더 이상 지원되지 않습니다. 라이브러리가 컴파일러를 컴파일하게 만들어 오류를 보고하지 않음으로써 패키징 후 메인 프로젝트에 복사된 파일을 정상적으로 호출할 수 있음

Supongo que te gusta

Origin blog.csdn.net/github_37610197/article/details/129045620
Recomendado
Clasificación