Skip to main content
1 vote
2 answers
3k views

Android: Autmomate Migrate from Kotlin synthetics to Jetpack view binding [closed]

As the 'kotlin-android-extensions' is deprecated, and I have some library updates pending that depend on this migration. I have seen the migration guide, which suggests to manually do some changes for ...
M. Usman Khan's user avatar
0 votes
1 answer
60 views

I am getting the following error TextView - findviewbyid kotlin

`enter image description here the "- findViewById(R.id.signUpText)" getting error in android studio and the error message show below Error Message: Unexpected tokens (use ';' to separate ...
Shi Eng Ng's user avatar
16 votes
3 answers
34k views

compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0

I am rebuilding my android project which is in java and some classes are written in kotlin. I have search on google but my problem didn't solve. I am getting below error while building my project: /...
D.J's user avatar
  • 1,559
0 votes
2 answers
174 views

How to search paried devices Kotlin Android App

I am attempting to create an Android app to connect to a HC-05 Bluetooth module. I am going through the Android documentation, however, following the documentation I am receiving an error that I can ...
Zack Myers's user avatar
8 votes
2 answers
2k views

Room DB: Duplicate class issues with Dao and RoomDatabase classes

I have a simple Room implementation in my app and am having issues with the Dao and RoomDatabase classes upon building the app (Build is failing). Dao class is 'NoteDao' @Dao interface NoteDao { @...
krtkush's user avatar
  • 1,528
12 votes
1 answer
5k views

What is the difference between mutableStateOf and mutableStateListOf?

While working with a ViewModel and a List stored in there, I usually followed this approach: var characteristics by mutableStateOf(listOf<Characteristic>()) Then, I could assign data to the ...
BenjyTec's user avatar
  • 11.2k
0 votes
1 answer
454 views

lateinit property mAdapter has not been initialized. How to solve this problem?

MainActivity.kt class MainActivity : AppCompatActivity(), NewsItemclicked { private lateinit var mAdapter: NewsListAdapter override fun onCreate(savedInstanceState: Bundle?) { super....
Soudeep Ghosh's user avatar
2 votes
1 answer
403 views

Android View Binding set Custom Generated package name

Default android generate (my package name is com.exaple) and it generate com.example.databinding.Activity I have lots of classes that reference com.example.sample.databinding.Activity so i have to ...
sk panchal's user avatar
4 votes
0 answers
70 views

flutter project - calling kotlin native code to flutter

hi im getting this error while putting a native code to flutter native side . seems like a java error but i tried several methods to clear out the error but couldn't do it . now i'm getting this error ...
Yasmitha Peththanayake's user avatar
0 votes
1 answer
3k views

How do I add and use Android libraries in a Kotlin Multiplatform Mobile project?

Feel like this is super straight-forward but I'm new to Kotlin and KMM >< Basically I am trying to use this library in a KMM project I set up with the KMM plugin in Android Studio. My shared ...
confusedcoder's user avatar
7 votes
0 answers
1k views

'Execution target' list on KMM Android studio is empty

I'm trying my hand at Kotlin Multiplatform Mobile, and am trying to run the demo app on an iPhone. I am able to run it easily on the Xcode simulation but can't simulate it on Android Studio, I'm not ...
Valentina Ramirez's user avatar
1 vote
1 answer
356 views

Android Studio Reinstall and restart app error

I am a new kotlin developer. On Android Studio Logcat when I add a new line of code, I get this error: Changes were not applied. Added variable(s) does not support value initialization: Adding static ...
Skyami's user avatar
  • 45
1 vote
1 answer
4k views

Does @Synchronized or synchronized Keyword(s) Work on Kotlin Coroutines?

From some other StackOverflow answers, seems mutex is needed if you need to guard a property or function from concurrent coroutine execution. However, I happened to look at the source code of ...
Yida Lin's user avatar
  • 187
0 votes
1 answer
459 views

Kotlin: Why am I getting a compile error cannot find a parameter for modifier and contentScale?

I am getting the error messages "Cannot find a parameter with this name: modifier" and "Cannot find a parameter with this name: contentScale". The compiler is not giving me an ...
kariku_k's user avatar
-1 votes
2 answers
102 views

What is the meaning of these keywords in Android ViewBinding?

lateinit keyword is used for late initialization of variables. -->Var is used for creating variable -->binding is a variable name -->What is the meaning of this (: ActivityMainBinding) Some ...
Fahad's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
48