val ๊ทธ๋ฆฌ๊ณ var getter, setter๋ฅผ ์ด์ผ๊ธฐํ๋๋ฐ ์ฌ val var ์ ์ด์ผ๊ธฐ๋ ์ถ์ ์ ์์ง๋ง ์ ๋๋ก ๊ณต๋ถํด๋ณด๋ ์ด ์ด์ผ๊ธฐ๋ฅผ ํ์ง ์์ ์ ์๋ค. val, var์ ์๋ฏธ val : value var : variable ์ ๋ง ๊ธฐ๋ณธ ์ ์ธ ์ฌ์ค ์ด์ง๋ง ๊ฐ๊ณผํ๊ณ ์์๋ค. ๊ทธ๋์์ ์๋์ ๊ฐ์ด ์๊ณ ์์์ง๋ง ์ฌ์ค ์ด ๋ด์ฉ์ผ๋ก๋ง ์๊ณ ์์๋ค๋ฉด ๋น์ฝ์ด๋ค. val : immutable var : mutable getter setter์ ๊ฐ๋ ๋ ์บก์ํ์ ๊ด๋ จํ ๊ธฐ๋ณธ์ ์ธ ๊ฐ๋ ์ธ๋ฐ, ๊ทธ๋ณด๋ค ๋ ๊ธฐ๋ณธ์ ์ธ ๊ฐ๋ ์ val var ์ด์ผ๊ธฐ๋ฅผ ์ ํ๋๋? Kotlin์ ๋ณ์์ getter(), setter()๋ฅผ ๋ด๋ถ์ ์ผ๋ก ์์ฑํด์ฃผ๋ ์ฅ์ ์ด ์๋ค. ์ด์ ๊ด๋ จํ์ฌ val, var์ ํต์ฌ์ ์ธ ์ฐจ์ด๋ ๋ฐ๋ก ์ด๊ฒ์ด๋ค. val..
java.lang.RuntimeException: Cannot create an instance of class ui.token.ft.transfer.TransferMainViewModel at androidx.lifecycle.ViewModelProvider$NewInstanceFactory.create(ViewModelProvider.kt:204) at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:324) at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create(ViewModelProvider.kt:306) at and..
developer.android.com ์๋๋ก์ด๋ ๊ณต์ ๋ ํผ๋ฐ์ค์ ์ํ๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ค๋ช ๋์ด ์์ต๋๋ค. ProGuard๋ฑ ์์ค์ฝ๋ ์ต์ ํ ์งํ์์ Reflection์ผ๋ก ์ ๊ทผํด์ผ ํ๋ ์์ ํน์ ์ต์ ํ๊ฐ ์งํ๋์ด๋ ์ ์ง๋์ด์ผํ๋ ๊ฐ์ ๊ฒฝ์ฐ ์ถ๊ฐํ์ฌ ์ฌ์ฉํฉ๋๋ค.
Key Hash ์์ฑํ๊ธฐ #1>JDK ์ค์น ๊ฒฝ๋ก๋ก ์ด๋ jdk/bin ํด๋์๋ keytool.exe ์คํํ์ผ์ด ์์นํด ์๋ค. #2>CMD ์คํ "cd {ํด๋๋ช }" ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํด keytool ํ์ผ์ด ์์นํ ํด๋๋ก ์ด๋ํ๋ค cd / cd {jdk/bin/๊ฒฝ๋ก} #3>keytool ๋ช ๋ น์ด ์คํํด๋ณด๊ธฐ "keytool"์ ๋ ฅ ํ ์ํฐ keytool -exportcert -alias androiddebugkey -keystore C:\Users\{์ ์ ์ด๋ฆ}\.android\debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64 openssl : 'openssl' ์ฉ์ด๊ฐ cmdlet, ํจ์, ์คํฌ๋ฆฝํธ ํ์ผ ๋..
Error Message Solutions remove declared databinding block in build.gradle upgrade gradle version in gradle-wrapper.properties 1 is not actual solution because you will maybe add this block for using databinding is my case, upgrade gradle version(gradle-4.4-all.zip) gradle-wrapper.properties
์๋๋ก์ด๋ ๋ฐ์ดํฐ ๋ฐ์ธ๋ฉ์์ onclick event๋ฅผ ์ค์ ํ๋ ๋ฐฉ๋ฒ์ค 2๊ฐ์ง๋ฅผ ์๊ฐํ๋ค. How to make onClick event in Android databinding Call function Set declared onClickListener Call function android:onClick="@{()->viewModel.doSomething()}" 1 2 3 4 Set OnclickListener android:onClick="@{viewModel.onClickToastListener}" 1 val onClickToastListener = View.OnClickListener { showToast() } 1 2 3 4
android:launchMode [AndroidManifest.xml] Activity ์์๊ณผ ๊ด๋ จํ ์์ฑ call to its onNewIntent() : always make [new Intent] routes the intent : not make new Intent [just routing] - Multiple Instances standard : multiple activities can be started. very first activity state is shown singleTop : multiple activities can be started. latest activity state is shown - Single Instances (not recommended for general..
- Total
- Today
- Yesterday
- android aar library
- launchemode
- viewmodel
- decomplie
- android
- custom setter
- Support for password authentication was removed on August 13
- How to import android AAR file
- Make onClick event in Android databinding
- GitHub
- Hilt
- Cannot create an instance
- android databinding
- android launch mode in manifest
- databinding onclick not working
- custom getter
- import aar
- DexArchiveBuilderException
- Effective Kotlin
- module-info is missing a super type
- databinding onClick
- Please use a personal access token instead
- AAR
- android aar
- com.android.build.api.transform.TransformException
- aar import
- The requested URL returned error
- Kotlin
- annotaion
- AndroidManifest
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |