question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime dependencies not found for common and native

See original GitHub issue

I’m on a pretty new multi-platform project ( Android + iOs, actually ) and I’m trying to import SqlDelight 1.0.0

Added the dependency in the classpath and applied the plugin, in fact the code generation works flawlessly, but com.squareup is not resolved, neither in the generated code, neither in my files. I inspected the project structure and found out only the jvm dependency is there in my app module ( Gradle: com.squareup.sqldelight:runtime-jvm:1.0.0@jar ) and, in fact, com.squareup.sqldelight si resolved for the files in main module ( jvm ), but not for others.

If any addition detail is needed, please tell me, not very experienced in Kotlin multi-platform, probably that’s my fault.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
AlecStrongcommented, Jan 11, 2019

ahhhhhhhhhhh right you need

enableFeaturePreview('GRADLE_METADATA')

in your root settings.gradle. I’ll add to the README.

1reaction
4face-studi0commented, Jan 11, 2019

Awesome!! Solved 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android app won't build -- The minCompileSdk (31) specified ...
The error is being caused because one of your dependencies is internally using WorkManager 2.7.0-beta01 that was released today (which needs ...
Read more >
Identifying application runtime dependencies
Overview. The first step required in order to port any existing application to a container-based environment is to identify the dependencies ...
Read more >
Add an option to provide runtime classpath with dependencies ...
When we execute some Java class that has a main(), provided dependencies are not available and, as a result, certain classes cannot be...
Read more >
How to resolve “Could not load file or assembly … or one of its ...
Before going into how to resolve this issue, let's understand how runtime ... More often the first step — the assembly is not...
Read more >
Learning the Basics - Gradle User Manual
At runtime, Gradle will locate the declared dependencies if needed for operating ... Look for artifacts here if not found at the above...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found