본문 바로가기

*오류해결9

A problem occurred evaluating project ':app' 오류 npm run android 프로젝트명 을 실행하니 처음에는 잘 실행되나 싶었으나 오류가 발생했습니다. FAILURE: Build failed with an exception. * Where: Build file 'D:\app\weightLog\andro id\app\build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some .. 2023. 2. 16.
Execution failed for task ':react-native-gradle-plugin:compileKotlin' 오류 npm run android 프로젝트명 을 실행하니 오류가 발생했습니다. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. > Task :react-native-gradle-plugin:compileKotlin FAILED 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version. 1 actionable task: 1 executed FAILURE: Build f.. 2023. 2. 14.
cli.init is not a function 오류 cli로 프로젝트를 생성하면 아래와 같은 오류가 발생합니다. (npx react-native init 프로젝트명 명령어 실행 후 오류) TypeError: cli.init is not a function Installing react-native... Consider installing yarn to make this faster: https://yarnpkg.com npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN.. 2023. 2. 12.
java.lang.StringIndexOutOfBoundsException 오류 value.substring(0, 10); 받아온 value 값을 substring을 이용해 자르려고 하니 오류가 발생했습니다. java.lang.StringIndexOutOfBoundsException: String index out of range: 10 문자열의 길이가 10자리 이하인데 10자로 자르려고해서 생기는 오류입니다. substring 로직 전에 길이 체크하는 로직을 추가하면 정상 작동합니다. value.length() > 10 ? value.substring(0, 10) : value; 2022. 2. 4.
The maximum column width for an individual cell is 255 characters 오류 엑셀 다운로드 중 갑자기 오류가 발생했습니다. java.lang.IllegalArgumentException: The maximum column width for an individual cell is 255 characters. 최대 열 너비가 255로 제한이 있다고 합니다. sheet.setColumnWidth(firstCol, sheet.getColumnWidth(firstCol) + 1024); setColumnWidth 사용 할 때, width가 255*256 을 넘어가면 throw new IllegalArgumentException 처리를 합니다. sheet.getColumnWidth(firstCol) + 1024 해당부분이 255*256를 넘어가서 예외처리가 났습니다. 열 너비를 동적으로 지.. 2021. 10. 25.
반응형