본문 바로가기

전체 글234

e: java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x603c3b7d) cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module [ 해결 ]id("org.jetbrains.kotlin.android") version "1.9.23" apply false [ 참고 ]https://stackoverflow.com/questions/77628445/java-lang-illegalaccesserror-superclass-access-check-failed-class-org-jetbrain java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler?I'm getting this strange AccessError after implementing Firebase Database d.. 2024. 11. 30.
[Android] 빌드, MultiDex 빌드개발자가 소스 코드를 작성 후 앱 설치 파일 APK 를 만들기까지의 실행 과정 리눅스에서의 빌드소스 코드를 컴퓨터가 읽을 수 있는 기계어로 번역(*컴파일)하고, 내가 만든 소스 코드에서 사용하는 라이브러리와 연결해서 최종 실행 파일 형태로 만드는 것컴파일(Compile) : 사람이 읽을 수 있는 형태의 소스 코드를 컴퓨터가 읽을 수 있는 형태의 기계어로 변환해 주는 과정 JVM 에서의 빌드JVM(Java Virtual Machine) : 자바는 OS 에 종속적이지 않다는 특징을 가지고 있다. OS 에 종속받지 않고 실행되기 위해서는 OS 위에서 자바를 실행할 수 있는 환경이 필요하다. JVM 은 자바 *바이트코드를 운영체제에 종속되지 않고 실행할 수 있도록 해주는 역할을 한다.바이트코드(Bytecod.. 2024. 11. 30.
[LeetCode][Kotlin] 853. Car Fleet 853. Car FleetThere are n cars at given miles away from the starting mile 0, traveling to reach the mile target. You are given two integer array position and speed, both of length n, where position[i] is the starting mile of the ith car and speed[i] is the speed of the ith car in miles per hour. A car cannot pass another car, but it can catch up and then travel next to it at the speed of the slo.. 2024. 11. 29.
[LeetCode][Kotlin] 735. Asteroid Collision 735. Asteroid CollisionWe are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions. If two asteroids meet, the smaller one will explode. If.. 2024. 11. 29.
[LeetCode][Kotlin] 22. Generate Parentheses 22. Generate ParenthesesGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.n쌍의 괄호가 주어졌을 때, 올바르게 구성된 괄호의 모든 조합을 생성하는 함수를 작성하세요. Example 1:Input: n = 3Output: ["((()))","(()())","(())()","()(())","()()()"] Example 2:Input: n = 1Output: ["()"] Constraints:1 코드 1class Solution { fun generateParenthesis(n: Int): List { val stack = mutableL.. 2024. 11. 28.
[LeetCode][Kotlin] 1544. Make The String Great 1544. Make The String GreatGiven a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where:0 s[i] is a lower-case letter and s[i + 1] is the same letter but in upper-case or vice-versa.To make the string good, you can choose two adjacent characters that make the string bad and remove them. You can keep doing t.. 2024. 11. 27.
[CS] 비트(bit)와 바이트(byte), 음수 표현법 사람과 사람 간에 의사소통을 하기 위해 언어(한글, 영어 등)가 필요하듯이 컴퓨터도 장비들끼리 의사소통을 할 수 있는 언어가 필요하다. 그 용도로 사용되는 것이 비트와 바이트이다. 2진법우리가 일상에서 사용하는 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 총 10개의 기호로 표현하는 것이 10진법이다.하지만 컴퓨터에는 이렇게 많은 숫자가 없다. 오직 0과 1로만 데이터를 표현한다. 이처럼 0과 1로만 표현하는 것을 2진법이라고 한다.컴퓨터는 신기하게도 오로지 0과 1만으로 숫자뿐만 아니라 글자, 사진, 영상, 소리 등을 저장할 수 있다.2진법에서는 두 개의 숫자만 있으므로 각 자릿수가 2의 거듭제곱을 의미한다. 비트(bit), 2진수(binary digit)컴퓨터에서 처리하는 정보의 최소 표현 단.. 2024. 11. 27.