Using Kable in an Android Project
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Indeed, gradle is apparently smart enough to figure it out:
TIL. Perhaps the readme should suggest this method instead.
Thank you as well. 😃
@Computr0n something in your Gradle configuration is expecting the
debugversion of the Kable library. With non-multiplatform Android projects generally I’m used to seeingdebugImplementation("...")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.0should work (at least for what Gradle is expecting, although it is still strange to me that it wants thedebugversion.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.
corein this case) artifact? 🤷 In other words, does it maybe work to specifycom.juul.kable:core:0.3.0as your dependency?I’m no expert at Gradle, so I appreciate your patience and thoroughness with your comments in trying to figure this out.