Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- react native 세팅
- 에러
- error
- AWS Access Key
- react native font
- 백준
- firebase 라이브러리
- 리액트 네이티브 에러
- react native CLI
- js
- babel.config.js
- react native picker
- PongWorld
- 리액트 네이티브
- GIT
- Next.js
- Access Key 생성
- Project
- React
- aws bucket 정책
- img upload
- s3 upload
- 리액트
- react native
- 문자열 대소문자
- 문자열 대소문자 구별
- 리엑트 네이티브 아이콘
- react native 개발
- AWS
- fire base
Archives
- Today
- Total
밝을희 클태
[android studio] APK 만들때 [A problem was found with the configuration of task ':app:lintVitalAnalyzeRelease' (type 'AndroidLintAnalysisTask').] ERROR 본문
마모리(My Memory) 프로젝트
[android studio] APK 만들때 [A problem was found with the configuration of task ':app:lintVitalAnalyzeRelease' (type 'AndroidLintAnalysisTask').] ERROR
huipark 2023. 11. 2. 19:12안드로이드 스튜디오에서 APK를 추출하려는데 아래와 같은 에러가 난다. 읽어보면 react native vector icons에서 나는 에러 같은데
검색해 보면 쉽게 해결법이 나온다.
- A problem was found with the configuration of task ':app:lintVitalAnalyzeRelease' (type 'AndroidLintAnalysisTask').
- Gradle detected a problem with the following location: '/Users/tom/Documents/GitHub/media/android/app/build/intermediates/ReactNativeVectorIcons'.Possible solutions:
- Declare task ':app:copyReactNativeVectorIconFonts' as an input of ':app:lintVitalAnalyzeRelease'.
- Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:lintVitalAnalyzeRelease' using Task#dependsOn.
- Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:lintVitalAnalyzeRelease' using Task#mustRunAfter.
- Reason: Task ':app:lintVitalAnalyzeRelease' uses this output of task ':app:copyReactNativeVectorIconFonts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
- Gradle detected a problem with the following location: '/Users/tom/Documents/GitHub/media/android/app/build/intermediates/ReactNativeVectorIcons'.Possible solutions:
- 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.
아래처럼 코드를 추가 해주면 되는데 node_module의 직접적인 수정은 좋은 방법이 아니지만 다른 방법은 없는 것 같아 임시해결책으론 적당한 거 같다
diff --git a/node_modules/react-native-vector-icons/fonts.gradle b/node_modules/react-native-vector-icons/fonts.gradle
index 5485fac..ef3ccb3 100644
--- a/node_modules/react-native-vector-icons/fonts.gradle
+++ b/node_modules/react-native-vector-icons/fonts.gradle
@@ -26,6 +26,10 @@ afterEvaluate {
android.applicationVariants.all { def variant ->
def targetName = variant.name.capitalize()
+ def lintVitalAnalyzeTask = tasks.findByName("lintVitalAnalyze${targetName}")
+ if (lintVitalAnalyzeTask) {
+ lintVitalAnalyzeTask.dependsOn(fontCopyTask)
+ }
def generateAssetsTask = tasks.findByName("generate${targetName}Assets")
generateAssetsTask.dependsOn(fontCopyTask)
}
'마모리(My Memory) 프로젝트' 카테고리의 다른 글
[IOS] ios project 앱 이름 바꾸기 (0) | 2023.11.03 |
---|---|
[Android] android project 앱 이름 바꾸기 (0) | 2023.11.03 |
[react native / 리액트 네이티브] react-native-push-notification 사용법 (0) | 2023.09.29 |
[react native / 리액트 네이티브]react-native-permissions 설치 방법 (0) | 2023.09.22 |
[react native / 리액트 네이티브] react-native-push-notification IOS, Android 푸시 알람 설치하기 (0) | 2023.09.22 |