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.

Using Kable in an Android Project

See original GitHub issue

I have an android gradle module and I am following the platform specific instructions in the readme that say to add:

dependencies {
    implementation("com.juul.kable:core-android:0.2.0")
}

Gradle successfully syncs, but I don’t see the library show up in the project window under external libraries and I cannot seem to use any kable classes in my project.

I’m not sure whats missing, I have never used a multiplatform library from an android project.

If I set the version to 0.1.0, android studio will recommend the next available highest version. (0.2.0 in my case although I see 0.3.0 was published yesterday). Because of this, I don’t think its gradle failing to sync silently. not sure where to look next.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Volatile-Memorycommented, Feb 28, 2021

I haven’t tried it yet, but perhaps with newer versions of Gradle it knows to pull in the appropriate artifact based on the undecorated (i.e. core in this case) artifact? 🤷 In other words, does it maybe work to specify com.juul.kable:core:0.3.0 as your dependency?

Indeed, gradle is apparently smart enough to figure it out: image

TIL. Perhaps the readme should suggest this method instead.

I’m no expert at Gradle, so I appreciate your patience and thoroughness with your comments in trying to figure this out.

Thank you as well. 😃

1reaction
twyattcommented, Feb 28, 2021

@Computr0n something in your Gradle configuration is expecting the debug version of the Kable library. With non-multiplatform Android projects generally I’m used to seeing debugImplementation("...") for debug dependencies, so I’m not quite sure what is going on there.

For a quick fix for your particular configuration, the com.juul.kable:core-android-debug:0.3.0 should work (at least for what Gradle is expecting, although it is still strange to me that it wants the debug version.

I haven’t tried it yet, but perhaps with newer versions of Gradle it knows to pull in the appropriate artifact based on the undecorated (i.e. core in this case) artifact? 🤷 In other words, does it maybe work to specify com.juul.kable:core:0.3.0 as your dependency?

I’m no expert at Gradle, so I appreciate your patience and thoroughness with your comments in trying to figure this out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A non-trivial Bluetooth LE app using Kable and app ...
The intention of this project is to demonstrate a non-trivial Bluetooth LE app using Kable and app architecture best practices.
Read more >
Kotlin Beautiful Low Energy (BLE) | by Siamak (Ash) Ashrafi
a new way of managing background threads that can simplify code by reducing the need for callbacks. Using Kotlin Coroutines in your Android...
Read more >
com.juul.kable : core-android : 0.10.2 - Maven Central Repository ...
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ...
Read more >
3 Steps to Creating a Scoping Document for Your Mobile App
thunkable beaver mascot stop graphic no code app builder app creator ... develop, and deploy native Android, iOS, and mobile web apps with...
Read more >
KableCARD | Multi-functional Cable Essentials For Your Phone
6,177 backers pledged S$ 456,544 to help bring this project to life. ... With KableCARD, you don't even have think about which type...
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