Questions related to Kotlin Android Extensions
Questions tagged [kotlin-android-extensions]
721 questions
-2
votes
1 answer
My app is not able to build due to com.android.application plugin missing in android studio?
//this is my build.gradle file, plz help.
def var = buildscript {
ext.kotlin_version = '1.2.30'
repositories {
google()
maven { url "https://maven.google.com" }
jcenter()
}
dependencies {
classpath…

Rishabh Kumar Bhardwaj
- 11
- 1
- 6
-2
votes
2 answers
For loop misbehave in Kotlin
I am trying to iterate through for loop but when I try to get value from 2D array and add that value then for loop misbehave. Here is the code I am sharing...
var max_sum = 0
var total : Int = 0
val arr = Array(6) { IntArray(6) }
for…

Nikhil Singh
- 300
- 2
- 13
-2
votes
2 answers
Why is setting onClickListener working once?
I want to migrate a very solid project structure that I use to Kotlin. I first tried the basics: Activities and Fragment transactions. It appears so easy and simple:
class MainActivity : AppCompatActivity(), SomeInterface {
override fun…

Chisko
- 3,092
- 6
- 27
- 45
-2
votes
8 answers
How to initialise view in fragment class in kotlin?
I would like the equivalent code for the line below in Kotlin:
TextView tv = view.findViewbyId(R.id.textView);
Any help?

Fazal
- 122
- 2
- 9
-2
votes
1 answer
How to load Fragment in Kotlin?
I am new to kotlin I am adding bottom bar in my app
val bottomNavigationView = findViewById(R.id.navigation) as BottomNavigationView
BottomNavigationViewHelper.removeShiftMode(bottomNavigationView)
…

Darshan
- 38
- 10
-2
votes
2 answers
unfortunately the app has stopped Android studio and there is no Error
In android monitor it's make this error like in the picture and I can't understand why is the error in the XML ?
the code no problem with it
can the picture that i added it make this error?
class MainActivity : AppCompatActivity() {
val…

hassan elhallaq
- 21
- 5
-2
votes
1 answer
kotlin - How synthetic property initialise view?
I used synthetic property in my code.But wondering for how and when it actually initialise each view in android.
We simply provide import and access each view by its id. When it allocate memory for view object?

paril
- 1,850
- 2
- 14
- 26
-3
votes
3 answers
How can i encode a pdf file to base64 string in kotlin android
Unable to convert a pdf file to base64 in android pie, file path returns is "content://com.android.providers.downloads.documents/document/4402" which is not real path hence unable to access the file.

basavaraj ganagi
- 61
- 1
- 2
- 6
-3
votes
1 answer
ProGuard error illegalArgumentException: Stack size becomes negative
I updated to Anko version 0.10.8 and Kotlin version 1.3.20 with compile SDK as 28. When I try to generate a signed APK, I get ProGuard error. The logs of the error are below.
What values should I add in ProGuard for…

Harsh
- 599
- 3
- 20
-3
votes
2 answers
how to pass object from one activity to another activity in android Kotlin?
I am new to android Kotlin. I am trying to Pass object from one activity to another activity I got stuck,
MyClass :
data class MyPojo(val name: String, val age: String) : Serializable
FirstActivity :
class MainActivity : AppCompatActivity()…

Siva
- 81
- 1
- 9
-3
votes
2 answers
Accessing TextView in a custom class in Kotlin
I'm a newbie in Android and Kotlin and I'm facing a problem that I can't solve it. I have a activity_main.xml file that contains a seekBar and a TextView. When I'm changing the seekBar I want to display the changed value in the TextView in…

Kristof
- 3
- 1
- 4
-4
votes
1 answer
Problems with using open source(cannot resolve com~~)
masters.
I've just started developing an Android(kotlin).
I tried to use open source for my project, but there is an error.
What am I supposed to do here?
(I referred to "https://androidexample365.com/customizable-timetableview-for-android/")
my…

준형임
- 31
- 4
-4
votes
1 answer
How to create project in Kotlin | Android Studio 3.1.1
I am learning Kotlin and i need to create some demos in Kotlin.
Whenever i am going to create new project, i am always getting this -
Can anybody help me.
Thanks in advance.

Shoeb Siddique
- 2,805
- 1
- 22
- 42
-4
votes
3 answers
Is kotlin both functional and procedural?
Apart from object oriented can it support procedural and functional programming styles?
I want to develop an android app using Android Studio so I could explore various programming styles kotlin has to offer which would really help me explore this…

Ruby
- 131
- 1
- 7
-4
votes
1 answer