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

[2.4.6] The library doesn't compile #29

Closed
mirland opened this issue Nov 5, 2019 · 13 comments
Closed

[2.4.6] The library doesn't compile #29

mirland opened this issue Nov 5, 2019 · 13 comments

Comments

@mirland
Copy link

mirland commented Nov 5, 2019

Log:

> Task :library:generateDebugRFile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':library:generateDebugRFile'.
> Could not resolve all files for configuration ':library:debugRuntimeClasspath'.
   > Could not resolve com.github.Tap-Payments:TapCardValidator-Android:2.1.0.1.
     Required by:
         project :library
      > Could not resolve com.github.Tap-Payments:TapCardValidator-Android:2.1.0.1.
         > Could not get resource 'https://jitpack.io/com/github/Tap-Payments/TapCardValidator-Android/2.1.0.1/TapCardValidator-Android-2.1.0.1.pom'.
            > Could not GET 'https://jitpack.io/com/github/Tap-Payments/TapCardValidator-Android/2.1.0.1/TapCardValidator-Android-2.1.0.1.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Steps to reproduce it:

  • Clone the repo (git clone git@github.com:Tap-Payments/goSellSDK-Android.git).
  • Checkout in the 2.4.6 tag (git checkout 2.4.6 )
  • Compile it ./gradlew assembleDebug

Additional comments:

@HaithamSheshtawy
Copy link
Collaborator

now its public, can u please test

@mirland
Copy link
Author

mirland commented Nov 6, 2019

It's not working. More dependencies are missing.

* What went wrong:
Execution failed for task ':goSellSDKSample:mergeDebugAssets'.
> Could not resolve all files for configuration ':goSellSDKSample:debugRuntimeClasspath'.
   > Could not resolve com.github.Tap-Payments:TapFontsKit-Android:1.0.
     Required by:
         project :goSellSDKSample
      > Could not resolve com.github.Tap-Payments:TapFontsKit-Android:1.0.
         > Could not get resource 'https://jitpack.io/com/github/Tap-Payments/TapFontsKit-Android/1.0/TapFontsKit-Android-1.0.pom'.
            > Could not GET 'https://jitpack.io/com/github/Tap-Payments/TapFontsKit-Android/1.0/TapFontsKit-Android-1.0.pom'. Received status code 401 from server: Unauthorized
   > Could not resolve com.github.Tap-Payments:TapDimensionsKit-Android:1.0.
     Required by:
         project :goSellSDKSample
      > Could not resolve com.github.Tap-Payments:TapDimensionsKit-Android:1.0.
         > Could not get resource 'https://jitpack.io/com/github/Tap-Payments/TapDimensionsKit-Android/1.0/TapDimensionsKit-Android-1.0.pom'.
            > Could not GET 'https://jitpack.io/com/github/Tap-Payments/TapDimensionsKit-Android/1.0/TapDimensionsKit-Android-1.0.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
16 actionable tasks: 16 executed

You can try it following the same steps as before.

@HaithamSheshtawy
Copy link
Collaborator

Now both TapDimensionsKit-Android and TapFontsKit-Android are public can u check now

@mirland
Copy link
Author

mirland commented Nov 6, 2019

So I tried it but I'm still facing the same issue. Did you try with the steps I posted in the description of this issue?

@HaithamSheshtawy
Copy link
Collaborator

I reproduced your scenario as mentioned in the description, and everything is working fine.
image

But, can you just add implementation 'com.github.Tap-Payments:goSellSDK-Android:2.4.6' as a dependency to your project and sync. don't test it through goSellSDKSample

@HaithamSheshtawy
Copy link
Collaborator

Also, this is jit pack artifact report:
image

@mirland
Copy link
Author

mirland commented Nov 6, 2019

I'm still having issues, now we have another dependency with issues:

 What went wrong:
Execution failed for task ':library:generateReleaseRFile'.
> Could not resolve all files for configuration ':library:releaseRuntimeClasspath'.
   > Could not resolve com.github.Tap-Payments:TapGLKit-Android:1.15.
     Required by:
         project :library
      > Could not resolve com.github.Tap-Payments:TapGLKit-Android:1.15.
         > Could not get resource 'https://jitpack.io/com/github/Tap-Payments/TapGLKit-Android/1.15/TapGLKit-Android-1.15.pom'.
            > Could not GET 'https://jitpack.io/com/github/Tap-Payments/TapGLKit-Android/1.15/TapGLKit-Android-1.15.pom'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 38s
7 actionable tasks: 1 executed, 6 up-to-date

I tried it in your project and also in my app.
If you want to reproduce the issue you can clone your project and execute ./gradlew :library:assembleRelease --refresh-dependencies. Keep in mind that I added --refresh-dependencies flag in order to reload all dependencies, because that dependency was working fine but it's not working anymore.

@HaithamSheshtawy
Copy link
Collaborator

It seems you face different issues each time. and I have doubts about JitPack itself.
So, I reproduced your scenario again. I made the lib public.
can you test it now?

@HaithamSheshtawy
Copy link
Collaborator

TapGLKit-Android:1.15
image

@HaithamSheshtawy
Copy link
Collaborator

Could u please close the issue If you be able to integrate.

@mirland
Copy link
Author

mirland commented Nov 7, 2019

Yep, it's working now. Thanks!

@mirland mirland closed this as completed Nov 7, 2019
@HaithamSheshtawy
Copy link
Collaborator

Great
Most welcome.

@atanvir
Copy link

atanvir commented Jul 13, 2020

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':goSellSDKSample:mergeDebugAssets'.

Could not resolve all files for configuration ':goSellSDKSample:debugRuntimeClasspath'.
Could not resolve com.github.Tap-Payments:TapColorsKit-Android:1.0.
Required by:
project :goSellSDKSample
> Could not resolve com.github.Tap-Payments:TapColorsKit-Android:1.0.
> Could not get resource 'https://jitpack.io/com/github/Tap-Payments/TapColorsKit-Android/1.0/TapColorsKit-Android-1.0.pom'.
> Could not GET 'https://jitpack.io/com/github/Tap-Payments/TapColorsKit-Android/1.0/TapColorsKit-Android-1.0.pom'. Received status code 401 from server: Unauthorized

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

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