https://kotlinlang.org
Join Slack
Is there a recommended way to add a dependency on an .aar file for Android in the shared component? ...
t

Trey

over 3 years ago
Is there a recommended way to add a dependency on an .aar file for Android in the shared component? I tried putting it under libs, but I get this error:
> Direct local .aar file dependencies are not supported when building an AAR. The 
resulting AAR would be broken because the classes and Android resources from any 
local .aar file dependencies would not be packaged in the resulting AAR. Previous 
versions of the Android Gradle Plugin produce broken AARs in this case too 
(despite not throwing this error). The following direct local .aar file 
dependencies of the :common project caused this error:
t
m
l
  • 3
  • 2
  • 2619
is there any throttle operator for flow ?
m

myanmarking

over 5 years ago
is there any throttle operator for flow ?
m
o
+4
  • 6
  • 16
  • 2607
When applying the above plugin I’m getting the error: `A problem occurred configuring root project '...
a

Alexander Suraphel

about 4 years ago
When applying the above plugin I’m getting the error:
A problem occurred configuring root project ''.
> 'kotlin-android' plugin requires one of the Android Gradle plugins.
Please apply one of the following plugins to ':' project:
- com.android.application
- com.android.library
- com.android.dynamic-feature
- com.android.asset-pack
- com.android.asset-pack-bundle
- com.android.lint
- com.android.test
- com.android.instantapp
- com.android.feature
What am I missing?
a
m
  • 2
  • 20
  • 2548
what is the best way to display a pdf with jetpack compose ?
y

Yves Kalume

almost 4 years ago
what is the best way to display a pdf with jetpack compose ?
y
g
+2
  • 4
  • 8
  • 2528
Compose + ViewModel + MutableState combination is error-prone due to snapshots mechanics. Shouldn't ...
g

George

over 3 years ago
Compose + ViewModel + MutableState combination is error-prone due to snapshots mechanics. Shouldn't something be done about it? (details inside)
g
d
+3
  • 5
  • 28
  • 2513
Is there a better way to delay the `AnimatedVisibility` execution? Code in thread.
v

Vsevolod Kaganovych

over 3 years ago
Is there a better way to delay the
AnimatedVisibility
execution? Code in thread.
v
c
d
  • 3
  • 9
  • 2510
What is the alternative to intrinsics. I am getting an error with using it with a complex view whic...
d

David Corrado

about 3 years ago
What is the alternative to intrinsics. I am getting an error with using it with a complex view which does not support intrinsics
d
k
z
  • 3
  • 13
  • 2470
How I can pass the click event from child composable to its parent? e.g: ```Card( Modifier.clickab...
a

AmrJyniat

over 3 years ago
How I can pass the click event from child composable to its parent? e.g:
Card(
  Modifier.clickable { doSomething() }
){
   CheckBox(
     .....,
     onCheckedChange = {  } // leave it empty and pass its event to parent
   )
   Text("Some label")
}
a
m
+3
  • 5
  • 11
  • 2448
Hi i can delete TextField padding, i am using a OutlinedTextField
a

Android75

almost 3 years ago
Hi i can delete TextField padding, i am using a OutlinedTextField
a
i
m
  • 3
  • 9
  • 2416
I know that val cannot be reassigned, but how would I for example send a variable to a function to d...
o

oday

about 5 years ago
I know that val cannot be reassigned, but how would I for example send a variable to a function to do something with it?
private fun resetCounterAndGame(counter: Int) {
    if (counter == 2) {
        gameButtonText.set(resProvider.getString(R.string.try_another_number))
        gameStarted = false
        counter = 0 <--- val cannot be reassigned of course
    }
}
o
w
+4
  • 6
  • 19
  • 2413
Previous678Next

kotlinlang

A modern programming language that makes developers happier.

Powered by