qrcode-kotlin
qrcode-kotlin copied to clipboard
some typos in installation and usage guide (alguns erros de Digitação nos guias de instalação e uso)
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'.
Could not resolve all files for configuration ':compileClasspath'. Could not find io.github.g0dkar:qrcode-kotlin:4.1.1. Searched in the following locations: https://repo.maven.apache.org/maven2/io/github/g0dkar/qrcode-kotlin/4.1.1/qrcode-kotlin-4.1.1.pom
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
- // Use this for both Android and JVM 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) }
Heya! Thanks for the report! I had some issues with the release process but this should be fixed soon 😅
I have the same problem.
This way fixed to me:
~~.render()~~ --> .renderToBytes()
Heya, finally found out what was going wrong with the deployment. The 4.1.1 version should be up soon!
Sorry for the delay, I had COVID and wasn't feeling well at all x_x
Let me know if you can access the 4.1.1 version and if it solves the issues :)