본문 바로가기

분류 전체보기253

[android] gradle 스크립트 파일에 대한 모든 이해 소개 gradle은 Groovy 또는 Kotlin을 사용하여 다양한 플랫폼 개발의 자동화를 돕는 스크립트 도구입니다. 저는 네이티브 안드로이드 앱 개발과 React-Native 앱 개발을 하는 과정에서 gradle 스크립트를 활용하고 있습니다. 이 글에서는 안드로이드 앱 개발 시 활용하는 gradle 을 설명하겠습니다. android 앱 개발에서의 gradle 안드로이드 생태계에선 어플리케이션을 개발하기 위해 적극적으로 gradle을 활용합니다. 아래 스크린샷은 한 프로젝트에 일반적으로 포함되는 gradle 파일들입니다. settings.gradle 프로젝트의 root 디렉토리에 위치하며 프로젝트 단위의 설정 파일 하나의 프로젝트에는 하나가 아닌 여러 개의 모듈이 있을 수 있음 아래와 같이 android.. 2023. 6. 24.
[React-Native] Flipper는 무엇인가? 소개 flipper 는 페이스북(메타)팀에서 개발, 운영하는 오픈소스 디버거 입니다. iOS, Android, React-Native 등의 모바일 플랫폼 개발에 활용할 수 있습니다. 일반적으로 데스크탑 어플리케이션 형태로 제공되어 사용할 수 있습니다. React-Native 에서의 Flipper React-Native 프로젝트에서는 기본적으로 Flipper가 설치되어 있습니다. 디버그 모드에서 개발 도중 에러 발생 시 아래와 같은 에러모달을 자주 확인하셨을 텐데요, 이게 flipper의 기능입니다. 데스크탑 앱 형태가 아니라 React-Native에 내장되어 있습니다. Flipper는 gradle 스크립트를 통해 디버그 모드에서만 의존성 목록에 포함되어 있습니다. 위 스크린샷은 metro 서버가 응답하지.. 2023. 6. 24.
[React-Native] android :app:checkDebugAarMetadata Failed to transform react-native-0.71.0-rc.0-debug.aar 에러 해결 발생 에러 > Task :app:checkDebugAarMetadata FAILED 4 actionable tasks: 4 executed FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {ar.. 2023. 6. 24.
[React-Native] android gradle Configuration with name 'compile' not found. 에러 해결 발생 에러 FAILURE: Build failed with an exception. * What went wrong: Configuration with name 'compile' not found. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org 해결 방법 이 글에서 제시하는 방법은 빌드 시 사용하는 gradle 버전이 7 이상일 상황에 한합니다. 프로젝트/android 디렉토리를 안드로이드 스튜디어로.. 2023. 6. 24.
[React-Native] android :app:processDebugResources Could not find com.facebook.fresco:fresco:2.2.0 에러 해결 발생 에러 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:processDebugResources'. > Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.facebook.fresco:fresco:2.2.0. Searched in the following locations: - https://repo.maven.apache.org/maven2/com/facebook/fresco/fresco/2.2.0/fresco-.. 2023. 6. 23.
[React-Native] 구 버전(0.63.4) android 프로젝트 빌드하기 React-Native는 정말 많이, 빠르게 변화하고 있습니다. 크로스 모바일 플랫폼이다 보니 android, iOS 생태계의 변경에 민감하고 추가 적인 라이브러리에 매우 의존적입니다. 조금이라도 React-Native 버전이 최신 버전과 차이가 날 경우 늘 새로운 에러를 마주합니다. 이번 글엔 구 버전, 이 글에선 0.63.4 버전을 기준으로 빌드에 성공하는 방법에 대해 설명합니다. android 빌드에 한해 서술합니다. flipper 버전 수정 프로젝트/android 디렉토리를 안드로이드 스튜디오로 열어 gradle.properties 내 flipper 버전을 수정합니다. 0.99.0 으로 버전을 수정해 주세요. 의존성 라이브러리의 호환성 문제(fresco 등)를 해결하기 위해 버전을 수정해야 합니다.. 2023. 6. 23.