본문 바로가기

Computer/Android

(7)
Training > android basics in kotlin > Unit 2 : Layous > PATHWAY1 : Get user input in an app : Part1
Kotlin으로 배우는 Android 기본사항 Kotlin 으로 Android 앱 개발 > Android와 Kotilin을 기초부터 배우기 > Kotlin으로 배우는 Android 기본사항 > Unit1: Kotlin Basics > PATHWAY1: Introduction to Kotlin PATHWAY2: Create your first app PATHWAY3: Build a basic layout PATHWAY4: Add a button to an app Kotlin 으로 Android 앱 개발 > Android와 Kotilin을 기초부터 배우기 > Kotlin으로 배우는 Android 기본사항 > Unit1: Kotlin Basics > PATHWAY4: Add a button to an app > Create an interactive Di..
https://developer.android.com/ Android Basics in Kotlin (1) Unit 1: Kotlin basics ① Introduction to Kotlin ② Create your first app ③ Build a basic layout ④ Add a button an app - Kotlin의 클래스 및 객체 인스턴스 클래스는 건물의 청사진 같은 것으로 이에 액세스하기 위해서는 객체를 생성해야 한다. 클래스, 객체, 인스턴스의 차이 Kotlin의 함수 선언 (2) Unit 2: Layouts (3) Unit 3: Navigation (4) Unit 4: Connect to the internet (5) Unit 5: Data persistence Unit 1: Kotlin basics 함수 호출 시 인수를 제공하며, 호출..
Manifest merger failed : Apps targeting Android 12 Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. AndroidManifest.xml 에 android:exported="true" 를 추가하면 된다. 무슨 의미인지는 모른다.
[코틀린 안드로이드 기초 강의_13] 리스너 이해하기 하.. 정말이지 불친절한 강의 [코틀린 안드로이드 기초 강의_13] 리스너 이해하기 7분 20초 짜리 동영상 강의 하나 쫓아하는데 하루가 꼬박 걸렸네... 왜 이렇게 해야하는지 이해는 못하지만 인터넷 검색을 통해서 꼬박 하루만에 어쨌든 실행이 됐다. 나중에 공부하고 다시 보면 왜 이렇게 했는지 알겠지... 동영상을 그대로 따라하는데 Button 개체가 안 먹힌다. Manifest merger faild : Apps Targeting Android 12 and higher are requred to specify an explicit value for 'android:exported' when the corresponding component has an intent filter defined. 만 하루를..
Installed Build Tools revision 31.0.0 is corrupted. 파일명 수정하는 방법 1. C:\Users\User\AppData\Local\Android\Sdk\build-tools\31.0.0 경로로 간다. 2. d8.bat이라는 파일을 찾아 dx.bat으로 변경한다. 3. C:\Users\jmk11\AppData\Local\Android\Sdk\build-tools\31.0.0\lib 경로로 간다. 4. d8.jar 파일을 dx.jar로 변경한다. 코드 수정하는 방법 안드로이드 스튜디오에 gradle scripts에 들어간다 compileSdkVersion, buildToolsVersion, targetSdkVersion의 31을 모두 30으로 바꿔준다. ※ 다른 프로제트를 생성하면 또 해줘야 하는 단점이 있다
Android with cotlin 기본 문법 Log.d() 함수를 사용하려면 MainActivity.kt 처음에 import android.util.Log 을 해줘야 한다. 변수 선언 Var (Variable) var 변수명 : 타입 = 값 ex) var shortValue: Short = 32.767 종류 Double & Float Int & Long Short & Byte Cjar & String Boolean 변수 출력 ${}, "$"표시를 그대로 출력하고 싶을 때는 "$"표시 앞에 백슬래시("\") 상수 선인 Val 변수와 다르게 한 번 선언하면 바꿀 수 없다.) 보통 대문자로 쓴다. Val 상수 이름 = 값 IF 문 if ( 조건) {True 일 때....} If ~ else 문 if (조건) {True일 때} else {False일 때}..