반응형

Platform 173

[Colors.xml] Colors.xml 의 리소스를 Kotlin 에서 사용하기

colors.xml 에 있는 리소스를 사용하기 위한 code spinnet fun getColorIntFromResources(context: Context, id: Int): Int? { try { if (Build.VERSION.SDK_INT>= 23) { return context.resources.getColor(id, null) } else { return context.resources.getColor(id) } } catch (e: Resources.NotFoundException) { Log.e("KHJI", e.message.toString()) return null } } 🙉 해당 code spinnet 에서 try ~ catch 를 사용하는 이유는? 더보기 getColor API pu..

Platform/Android 2022.03.01

[EditText] 문자열 변경을 감지하고 싶을 때? addTextChangedListener

EditText 에서 문자열 변경에 따른 처리를 해주고 싶을 때 유용한 리스너이다. id_edit_text.addTextChangedListener(object: TextWatcher { //변경되기 전, 변경되는 정보를 전달해주기 위한 메서드 //p0: 현재 입력된 문자열 //p1: 변경 시작할 위치(start) //p2: 시작할 위치 부터 변경될 길이(count) //p3: 변경 후, 변경된 길이(after) override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) { TODO("Not yet implemented") } //변경되는 시점에 변경"된" 정보를 전달해주기 위한 메서드 //p0: 현재 입력된 문자열 Warni..

Platform/Android 2022.02.28

[Error] This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, ...

Error This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer. Cause 사용하려고 하는 Android Support plugin 을 지금 사용하고 있는 Android Studio 버전에서 사용할 수 없다. 이 당시, 내가 사용하려고 한 Android Support plugin 은 7.0.3 버전이고, Android Studio 는 2020.3.1 버전이었다. Solved 최신버전의 Android Studio 를 설치했다! 이 당시, 최신버전의 Android Studio 는 2021.1...

Platform/Android 2022.02.24

[AndroidStudio] 안드로이드 스튜디오 베타 Release, 개발 Release, 안정화 Release 등 버전 확인 && 업데이트

베타 Release, 개발 Release, 안정화 Release 등 Release 종류에 따른 1. 최신 버전의 Android Studio를 알아보고, 2. 업데이트할 수 있는 방법 먼저, 각 Channel 가 어떤 의미 인지 알아볼까요~? Channel: 해당 버전을 다운로드할 수 있는 경로 Canary Channel 가장 최신의 릴리즈 버전. 모든 기능이 빌드되는 즉시 테스트할 수 있다. ❗버그 주의(테스트 시에만 사용할 것) Dev Channel Canary Channel 버전 중 테스트가 더 많이 된 버전 ❗버그 주의 (테스트 시에만 사용할 것) Beta Channel 새로운 기능을 빨리 사용하고 싶지만, 그나마 안정된 버전을 사용하고 싶다면? 이 버전입니다. 그러나, 여전히❗버그 주의 Stabl..

Platform/Android 2022.02.23

[AndroidStudio] 안드로이드스튜디오 버전 업데이트

최신 버전의 Android Studio를 알아보고, 업데이트할 수 있는 방법 🙉 먼저, 현재 사용하고 있는 Android Studio의 버전만 확인하고 싶다면? (최신일 수도 있는데, 굳이~ 업데이트 받을 필요 없잖아요🤗🤗🤗) 더보기 클릭! 더보기 https://gaeng-stroy.tistory.com/302 [AndoridStudio] 안드로이드스튜디오 버전 확인하기 현재 사용하고 있는 Android Studio 의 버전을 체크하고, 업데이트 받을 수 있는 방법 Android Studio > About Android Studio 짠! 현재 사용하고 있는 Android Studio 버전이 나옵니다 👏🏻👏🏻👏🏻 제가 사용.. gaeng-stroy.tistory.com Step1 Android Studio..

Platform/Android 2022.02.22

[Waring] On SDK version 23 and up, your app data will be automatically backed up and restored on app install.

Warning:(6, 9) On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute `android:fullBackupContent` to specify an `@xml` resource which configures which files to backup, or just set `android:fullBackupOnly=true`. More info: https://developer.android.com/guide/topics/data/autobackup 경고:(6, 9) SDK 버전 23 이상에서는 앱 설치 시 앱 데이터가 자..

Platform/Android 2022.02.22

[Error] Could not find method dependencyResolutionManagement() for arguments ...

Error Settings file '$프로젝트 경로/settings.gradle' line: 1 A problem occurred evaluating settings '$프로젝트명'. > Could not find method dependencyResolutionManagement() for arguments [settings_4a5mt98omgey8rnbaqiv6g2xj$_run_closure1@f5fdb5a] on settings '$프로젝트명' of type org.gradle.initialization.DefaultSettings. Cause '$프로젝트 경로/settings.gradle' line: 1에 있는 dependencyResolutionManagement()를 찾을 수 없다........

Platform/Android 2022.02.22

[AndroidStudio] 안드로이드스튜디오 버전 확인

현재 사용하고 있는 Android Studio 의 버전 확인하기 Android Studio > About Android Studio 짠! 현재 사용하고 있는 Android Studio 버전이 나옵니다 👏🏻👏🏻👏🏻 제가 사용하고 있는 버전은 4.1.1 이네요! Android Studio 버전에 따라 gradle sync 오류가 나는 경우가 있어, gradle 관련 오류가 난다면 현재 사용하고 있는 Android Studio 버전을 ✅체크해보는 것도 하나의 방법인 것 같습니다. 다음에는 Android Studio 버전을 업데이트 하는 방법을 알아보도록 할까요오오~?

Platform/Android 2022.02.21

[AndroidManifest.xml] tools: attributes

xmlns:tools="http://schemas.android.com/tools" tools:ignore 무시하고 넘어갈 워닝을 정의한다. tools:ignore="UnusedAttribute" .참고 https://gun0912.tistory.com/73 [안드로이드/Android]tools attribute 유용하게 활용하기(xmlns:tools="http://schemas.android.com/tools") 안드로이드를 개발하면서 프로젝트를 새로 만들거나 xml파일에서 우리가 자주 만나는 녀석이 있습니다. xmlns:tools="http://schemas.android.com/tools" xml에 tools:context="xxx" 라는 걸 수도 없이 보아 왔지.. gun0912.tistory.com

Platform/Android 2022.02.15
반응형