목록Android (107)
App노자
1. 개요 데이터 바인딩을 사용하기 위해서는 레이아웃 파일의 루트 엘리먼트를 으로 작성해야 한다 직접 작성하고 수정하는 방법도 있지만, Android Studio에는 자동으로 변환하는 기능이 내장되어 있다 2. 사용 방법 1. 가장 상단에 있는 루트 엘리먼트를 드래그 한다 2. Mac 기준으로 Option + Enter를 누르면 위와 같이 버튼 항목이 활성화되며 'Convert to Data Binding Layout' 버튼이 있는 것을 확인할 수 있다 (Data Binding이 선언되어 있지 않는 프로젝트에서는 'Convert to Data Binding Layout' 버튼이 활성화되지 않는다) 3. 버튼을 누르면 변환된 결과를 확인할 수 있다
1. Coroutines이란? 파이어베이스는 2011년 파이어베이스사가 개발하고 2014년 구글에 인수된 모바일과 웹 애플리케이션을 개발하는 플랫폼이다 안드로이드 앱에서 파이어베이스를 이용하면 서버리스 컴퓨팅을 구현할 수 있다 Authentication(인증, 회원가입 및 로그인 처리)
1. 개요 ERROR:/Users/choijoonho/Android_Java_Calculator/app/src/main/res/values/styles.xml:4:5-9:13: AAPT: error: style attribute 'attr/colorPrimary (aka com.example.Choi.calculator:attr/colorPrimary)' not found. 2. 해결방법
Manifest merger failed : android:exported needs to be explicitly specified for element . 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.
1. 개요 apply plugin: 'com.android.application' android { compileSdkVersion 33 defaultConfig { applicationId 'com.example.Choi.calculator' minSdkVersion 20 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-..
1. Coroutines이란? 코루틴은 동시성 및 병렬성을 다루기 위한 프로그래밍 패턴과 기술이다 Kotlin은 다른 라이브러리가 코루틴을 활용할 수 있도록 표준 라이브러리에 최소한의 하위 수준 API만 제공한다 코루틴은 비동기 프로그래밍을 보다 쉽게 다룰 수 있게 해 주며, 다른 스레드를 생성하거나 관리하는 것보다 가벼우면서도 효율적인 방식으로 비동기 코드를 작성할 수 있게 해 준다 https://kotlinlang.org/docs/coroutines-overview.html Coroutines | Kotlin kotlinlang.org 2. build.gradle (Module) dependencies { implementation "org.jetbrains.kotlinx:kotlinx-corouti..
1. 개요 /Users/name/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-jvm/1.6.0/a7257339a052df0f91433cf9651231bbb802b502/annotation-jvm-1.6.0.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. Jetpack Compose를 기존 프로젝트에 추가하거나 신규 프로젝트를 만들 때 위와 같은 에러가 발생하는 경우가 있다 호환..
1. 개요 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun MacOS의 주요 업데이트 이후 Terminal에서 git을 사용할 때 가끔 위에 같은 error현상이 발생하면서 Terminal을 사용할 수 없는 현상이 발생한다 xcrun은 명령줄에서 개발자 도구를 찾거나 실행할 수 있는 방법을 제공하는 명령이며 현재 활성화된 개발자 도구의 경로가 유효하지 않다는 오류를 출력하고 있다 2. 해결 방법 xcode-select --install 워의 명령어를 실행시켜 주면 간단하게 해결된다 xc..