Pradheep Kumar V
06/30/2022, 3:58 PMSam
07/01/2022, 8:33 AMdef applyAndroid(project) {
project.android {
compileSdkVersion compileVersion
defaultConfig {
minSdkVersion minVersion
targetSdkVersion compileVersion
versionCode verCode
versionName verName
testInstrumentationRunner testRunner
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
kotlinOptions {
jvmTarget = "1.8"
// useIR = true
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-Xjvm-default=all"
}
testOptions.unitTests {
includeAndroidResources = true
}
buildFeatures {
aidl = false
renderScript = false
resValues = false
shaders = false
}
}
}
Hrafn Thorvaldsson
07/01/2022, 2:21 PMeygraber
07/01/2022, 2:27 PMFAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
3 problems were found storing the configuration cache, 1 of which seems unique.
- Task `:app:buildKotlinToolingMetadata` of type `org.jetbrains.kotlin.gradle.tooling.BuildKotlinToolingMetadataTask$FromKotlinExtension`: invocation of 'Task.project' at execution time is unsupported.
Anyone run into this?Miko Chu
07/01/2022, 2:46 PMMiko Chu
07/01/2022, 2:48 PMMiko Chu
07/01/2022, 2:49 PMNacho Ruiz Martin
07/01/2022, 7:31 PMBreaker ACT
07/02/2022, 4:58 PMtseisel
07/03/2022, 2:25 PMtestFixtures
feature of the Android Gradle Plugin introduced in AGP 7.2.0 ?
I can't get it working. Kotlin sources under testFixtures
does not seem to get compiled. I'm using Kotlin 1.6.21.Harshad Pawar
07/04/2022, 10:30 AMpackageManager.setComponentEnabledSetting(
ComponentName(this@HomeActivity, HomeActivitySilverAlias::class.java),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP
)
PackageManager.DONT_KILL_APP is not working
this code i am usingHarshad Pawar
07/04/2022, 10:30 AMMateusz Apacki
07/04/2022, 11:25 AMAli
07/04/2022, 2:52 PMlistOf(Test("t", listOf(1,2,3,4,5)), Test("e", listOf(6,7,8,9,10)))
Want to know if there is any way to update the 2nd item list based on some condition without iterating through the list item by item. My list is big in size.
I am currently doing it by this way but seems not efficient to iterate thorough each item
list.map{item-> item.map{ if(condition) update_list else it}}
Matthias Geisler
07/04/2022, 3:12 PMPradheep Kumar V
07/04/2022, 7:45 PMSatyam G
07/05/2022, 7:38 AMJoe Altidore
07/05/2022, 8:20 AMerror: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
kotlin.coroutines.Continuation<? super java.lang.Integer> continuation);
and this is the DAO Query throwing the error:
@Query("""
SELECT COUNT(*) FROM enrolment
""")
suspend fun getEnrolmentCount(): Int?
Satyam G
07/05/2022, 12:54 PMGonzalo Renedo
07/05/2022, 3:02 PMEmirhan Emmez
07/06/2022, 7:05 AMnuhkoca
07/06/2022, 12:52 PMDataStore
like
val userState: Flow<UserState> = userStateDataStore.data
.map { it }
and in VM
val isLoggedIn = userStateRepository.userState
.map { it.isLoggedIn }
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(), false)
collectAsState
works
val isLoggedIn by viewModel.isLoggedIn.collectAsState()
but collectAsStateWithLifecycle
doesn’t work
val isLoggedIn by viewModel.isLoggedIn.collectAsStateWithLifecycle()
does anybody know something?ritesh
07/06/2022, 3:40 PMArjun Achatz
07/06/2022, 10:28 PMVivek Modi
07/07/2022, 2:35 PMe: /Users/vmodi/AndroidStudioProjects/AndroidApp/app/src/main/java/com/abc/app/notifications/BrazeNavigator.kt: (17, 7): Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option
class BrazeNavigator : IBrazeDeeplinkHandler, KoinComponent {
}
So how can I fix this?Jhonatan Sabadi
07/07/2022, 6:14 PMDavid Whittaker
07/08/2022, 1:44 AMRahul Singhal
07/08/2022, 5:46 AMBrendan Campbell-hartzell
07/08/2022, 6:58 PMBrendan Campbell-hartzell
07/09/2022, 3:06 AMBrendan Campbell-hartzell
07/09/2022, 3:06 AM