Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./gradlew assemble* 빌드 명령어 실패하는 문제 수정 #1

Closed
wants to merge 1 commit into from

Conversation

floydkim
Copy link
Owner

@floydkim floydkim commented Aug 11, 2023

./gradlew assembleRelease 등, apk를 산출하는 빌드 명령시 다음과 같은 메시지로 실패하는 현상

* What went wrong:
Execution failed for task ':utae_react-native-image-crop-picker:bundleReleaseLocalLintAar'.
> Error while evaluating property 'hasLocalAarDeps' of task ':utae_react-native-image-crop-picker:bundleReleaseLocalLintAar'
   > 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 :utae_react-native-image-crop-picker project caused this error: ********/node_modules/@utae/react-native-image-crop-picker/android/libs/ucrop-release.aar

(프로젝트 디렉토리 경로를 별표로 가렸습니다)


수정내용은
이리저리 구글링하다가.. 동일 문제를 수정한 라이브러리 레포가 있길래 참고했고 (이슈 코멘트)
다행히 빌드는 잘 되더라구요 ㅎㅎ

어떤 이유로 이런 변경이 필요하게 된건지는 잘 모르겠어서.. 아쉽읍니다 😮‍💨

@floydkim
Copy link
Owner Author

실행 후 런타임에 오류 발생...

image

@floydkim floydkim marked this pull request as draft August 11, 2023 17:59
@floydkim
Copy link
Owner Author

floydkim commented Aug 11, 2023

:app:assembleRelease 명령어 사용하는 것으로 대처 가능.

또한 react-native cli 기본 명령을 사용해서 빌드시 문제 없음

  • react-native run-anroid --mode=release 등을 말함.
    • --variant는 deprecated
  • CLI 옵션 기본값이 assemble* 로, apk를 생성함.

@floydkim floydkim closed this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant