https://kotlinlang.org
Join Slack
I keep getting this error when trying to build Started on upgrade to Hedgehog Canary 12 Need help ...
r

Rudy Sulley

almost 2 years ago
I keep getting this error when trying to build Started on upgrade to Hedgehog Canary 12 Need help An error occurred when parsing kotlin metadata. This normally happens when using a newer version of kotlin than the kotlin version released when this version of R8 was created. To find compatible kotlin versions, please see: https://developer.android.com/studio/build/kotlin-d8-r8-versions
👍 1
r
e
  • 2
  • 5
  • 797
I am facing this issue when i running the application to install my emulator
v

Vivek Modi

over 3 years ago
I am facing this issue when i running the application to install my emulator
v
k
  • 2
  • 10
  • 797
Can anyone suggest me a caching library for ktor server?
m

Mohamed Jabarullah

about 3 years ago
Can anyone suggest me a caching library for ktor server?
m
j
+5
  • 7
  • 12
  • 796
Hi Guys, Any clues on how to handle com.squareup.moshi.JsonDataException to show an error message to...
w

Wishnuprathikantam

over 3 years ago
Hi Guys, Any clues on how to handle com.squareup.moshi.JsonDataException to show an error message to the user without crashing the app unexpectedly. I don't have control over the API response so need to handle this gracefully and let the user know the app isn't compatible with the backend. I'm using Retrofit + OKHttp + Moshi. Any help is appreciated. Thanks.
FATAL EXCEPTION: DefaultDispatcher-worker-3
    Process: com.myapp, PID: 18030
    com.squareup.moshi.JsonDataException: Required value 'fakeParam' missing at $
        at com.squareup.moshi.internal.Util.missingProperty(Util.java:660)
        at com.myapp.data.models.DeviceInformationJsonAdapter.fromJson(DeviceInformationJsonAdapter.kt:109)
        at com.myapp.DeviceInformationJsonAdapter.fromJson(DeviceInformationJsonAdapter.kt:22)
        at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
        at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:205)
        at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:45)
        at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:27)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:225)
        at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:121)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
😶 3
w
t
+2
  • 4
  • 13
  • 796
Are there official Proguard rules for Ktor?
l

Lukasz Kalnik

over 1 year ago
Are there official Proguard rules for Ktor?
l
a
  • 2
  • 8
  • 794
Hi, how can I modify the color of a Button when clicked ?
a

Ayfri

about 4 years ago
Hi, how can I modify the color of a Button when clicked ?
a
m
+3
  • 5
  • 20
  • 794
Is it possible to get scroll offset in pixels for `LazyColumn`? Can only see `firstVisibleItemScroll...
j

Jason Ankers

about 4 years ago
Is it possible to get scroll offset in pixels for
LazyColumn
? Can only see
firstVisibleItemScrollOffset
which is relative to items in the list
j
a
+2
  • 4
  • 14
  • 793
In a KMP Compose Multiplatform app, I'm starting Koin with `KoinApplication(application = { ...` as ...
j

Jeff Lockhart

over 1 year ago
In a KMP Compose Multiplatform app, I'm starting Koin with
KoinApplication(application = { ...
as described here. But the Android app sometimes crashes with:
org.koin.core.error.KoinAppAlreadyStartedException: Trying to run new Koin Application whereas Koin is already started. Use 'KoinContext()' instead of check for any 'startKoin' usage.
I'm assuming this happens when the Activity is recreated, as this is where the composable
App
is launched and where the stack trace stems from. Shouldn't
KoinApplication
expect this behavior of Activity recreation on Android?
j
n
+2
  • 4
  • 9
  • 792
I am running a KMM project. I get this error, but I am not sure how to fix it: `Cannot infer a bundl...
d

Daniele B

over 2 years ago
I am running a KMM project. I get this error, but I am not sure how to fix it:
Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
d
  • 1
  • 2
  • 791
Hey everyone, is there any Compose Markdown renderer library available out there? which also has sup...
k

khairil.ushan

over 1 year ago
Hey everyone, is there any Compose Markdown renderer library available out there? which also has support for iOS. I gave this (https://github.com/mikepenz/multiplatform-markdown-renderer) a try, but after including this library, I start having error when build/run the iOS app. The error is something like missing
androidx-annotation
.
k
j
+2
  • 4
  • 7
  • 789
Previous575859Next

kotlinlang

A modern programming language that makes developers happier.

Powered by