QRGenerator icon indicating copy to clipboard operation
QRGenerator copied to clipboard

importing the library in java file

Open Xtrex101 opened this issue 1 year ago • 7 comments

how do i import the library into the java file before using it

Xtrex101 avatar Sep 17 '23 15:09 Xtrex101

Me too. Cannot import library packages into the project. The implementation in the build.gradle is synced successfully.

AadhilMR avatar Dec 15 '23 02:12 AadhilMR

same here

gat-hobort avatar Feb 22 '24 05:02 gat-hobort

here is the solution:

Use

implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3'

in your gradle file

gat-hobort avatar Feb 22 '24 05:02 gat-hobort

@gat-hobort Thanks for the update!

AadhilMR avatar Feb 22 '24 13:02 AadhilMR

next issue I have is that any method of QRGEncoder is private. Dead-end - or do I miss something?

gat-hobort avatar Feb 22 '24 14:02 gat-hobort

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?

gregnomis avatar Mar 14 '24 22:03 gregnomis

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")
    }
}

eleucht1164 avatar Apr 17 '24 02:04 eleucht1164

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.

androidmads avatar Sep 05 '24 19:09 androidmads