Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am using this library from last 2years and suddenly I am getting this error while running the app - #21

Open
eastern-sayali opened this issue Jun 8, 2020 · 4 comments

Comments

@eastern-sayali
Copy link

eastern-sayali commented Jun 8, 2020

Could not GET 'https://jitpack.io/com/github/edsilfer/android-toolkit/master-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized

Could not resolve all files for configuration ':demo:debugCompileClasspath'.

Could not resolve com.github.edsilfer:android-toolkit:master-SNAPSHOT.
Required by:
project :demo
project :demo > project :library
Could not resolve com.github.edsilfer:android-toolkit:master-SNAPSHOT.
> Unable to load Maven meta-data from https://jitpack.io/com/github/edsilfer/android-toolkit/master-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'https://jitpack.io/com/github/edsilfer/android-toolkit/master-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://jitpack.io/com/github/edsilfer/android-toolkit/master-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized

This is a blocker to run the APP

@eastern-sayali eastern-sayali changed the title I am using this library from last 2years and suddenly I am getting this error while running the app - Could not GET 'https://jitpack.io/com/github/edsilfer/android-toolkit/master-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized I am using this library from last 2years and suddenly I am getting this error while running the app - Jun 8, 2020
@rr0055256
Copy link

Facing the same issue.

@Sternbach-Software
Copy link

Sternbach-Software commented Dec 1, 2021

Me too. The problem is that there is no such library github.com/edsilfer/android-toolkit that is referenced here. He does have one called https://github.com/edsilfer/android-tools, but it doesn't have the package names referenced in this library. He must have removed the library from being publicly available. A google search for the exact phrase "br.com.edsilfer.toolkit.core.util" only yields references to this library.

@Sternbach-Software
Copy link

Sternbach-Software commented Dec 1, 2021

It's a shame because the uses of that library are minimal (see below for every use in the library/why JitPack had a problem compiling the library), but it is very unclear what it does.


e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/model/RowStyleMapper.kt: (6, 24): Unresolved reference: toolkit
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/model/RowStyleMapper.kt: (22, 76): Unresolved reference: InvalidData
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/model/RowStyleMapper.kt: (23, 78): Unresolved reference: InvalidData
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/model/RowStyleMapper.kt: (26, 78): Unresolved reference: InvalidData
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndex.kt: (10, 24): Unresolved reference: toolkit
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndex.kt: (38, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexAdapter.kt: (11, 24): Unresolved reference: toolkit
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexAdapter.kt: (35, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexAdapter.kt: (37, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexAdapter.kt: (38, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexAdapter.kt: (39, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexLayoutManager.kt: (11, 24): Unresolved reference: toolkit
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexLayoutManager.kt: (78, 14): Unresolved reference: isInvalid
e: /home/jitpack/build/library/src/main/java/br/com/stickyindex/view/StickyIndexLayoutManager.kt: (79, 14): Unresolved reference: isInvalid

@Sternbach-Software
Copy link

Sternbach-Software commented Dec 1, 2021

There were only two references to the library: InvalidData.UNINITIALIZED.[getInt()|getFloat()] and InvalidData.Companion.isInvalid. The latter seemed to simply be checking if the values that the user put in for the headers were valid heights/widths (I don't know what would make it invalid), or if a style was invalid. I replaced those checks with if(true), which made the library compile, but made it slightly less error tolerant. So, if you are careful with it, it should behave almost exactly the same way. The only difference was that I made the width and height of the rows fixed (64 and 60), and the style set to 1 (not sure what that did). Here is the currently working version of the library: implementation 'com.github.shmueldabomb441:sticky-index:12504622da'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants