QRGenerator
QRGenerator copied to clipboard
importing the library in java file
how do i import the library into the java file before using it
Me too. Cannot import library packages into the project. The implementation in the build.gradle is synced successfully.
same here
here is the solution:
Use
implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3'
in your gradle file
@gat-hobort Thanks for the update!
next issue I have is that any method of QRGEncoder is private. Dead-end - or do I miss something?
Hey guys I still can't find a way to properly import this...
import com.androidmads.library.qrgenearator.QRGContents import com.androidmads.library.qrgenearator.QRGEncoder
Throws Unresolved Reference errors
Here's my module level gradle: implementation ("androidmads.library.qrgenearator:QRGenearator:1.0.3")
And my settings.gradle dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven("https://jitpack.io") } }
did i put tht maven url in the right place?
I was able to import the library using these configurations:
Activity:
import androidmads.library.qrgenearator.QRGContents;
import androidmads.library.qrgenearator.QRGEncoder;
Module-level build.gradle:
implementation("com.github.androidmads:QRGenerator:1.0.1")
settings.gradle:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
Hi eleucht1164,
Thanks for the steps and this is incorporated in the readme. I am closing this ticket and you can reopen if the persists still.