You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val pngBytes = helloWorld.render() // return error None of the following functions can be called with the arguments supplied.
write(ByteArray!) defined in java.io.FileOutputStream
write(Int) defined in java.io.FileOutputStream
All issues was solved by changing :
Todos os problemas foram resolvidos alterando
// Use this for both Android and JVM
implementation("io.github.g0dkar:qrcode-kotlin:4.1.1")
Describe the bug
A clear and concise description of what the bug is.
From https://github.com/g0dkar/qrcode-kotlin
In installation:
Repo qrcode-kotline:4.1.1 not found
Execution failed for task ':compileKotlin'.
In usage:
val pngBytes = helloWorld.render() // return error None of the following functions can be called with the arguments supplied.
write(ByteArray!) defined in java.io.FileOutputStream
write(Int) defined in java.io.FileOutputStream
All issues was solved by changing :
Todos os problemas foram resolvidos alterando
implementation("io.github.g0dkar:qrcode-kotlin:4.1.1")
To
implementation("io.github.g0dkar:qrcode-kotlin:4.1.0")
// By default, QRCodes are rendered as PNGs.
val pngBytes = helloWorld.render()
FileOutputStream("hello-world.png").use { it.write(pngBytes) }
To
// By default, QRCodes are rendered as PNGs.
val pngBytes = helloWorld.renderToBytes()
FileOutputStream("hello-world.png").use { it.write(pngBytes) }
The text was updated successfully, but these errors were encountered: