Kaspresso icon indicating copy to clipboard operation
Kaspresso copied to clipboard

Gradle is unable to download sources on version 1.4.1

Open AndreThlckr opened this issue 2 years ago • 0 comments

When using newer versions of the library, Gradle is unable to find and download the library sources (which allow you to read and debug the source code directly on the IDE).

Expected Behavior

Projects with the Kaspresso dependency should be able to download sources.

Actual Behavior

When trying do download sources, the following error appears:

* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_10c6f7e9-408b-4f6a-8bd9-fe15e255981e'.
   > Could not find com.kaspersky.android-components:kaspresso:1.4.1@aar.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/kaspersky/android-components/kaspresso/1.4.1@aar/[email protected]
       - https://repo.maven.apache.org/maven2/com/kaspersky/android-components/kaspresso/1.4.1@aar/[email protected]
     Required by:
         project :app

Steps to Reproduce the Problem

  1. Create an empty project;
  2. Add the dependency androidTestImplementation "com.kaspersky.android-components:kaspresso:1.4.1";
  3. Create a test using classes from Kaspresso;
  4. Try to access the source (on IntelliJ IDE, Ctrl+left click a Kaspresso class name/method call);
  5. You will only be able to see the decompiled bytecode.

Specifications

  • Library version: at least >= 1.4.1
  • IDE used: Android Studio

Observations

  • I haven't tested on all versions, but sources were able to be downloaded at least up to version 1.2.1.

AndreThlckr avatar Jul 06 '22 13:07 AndreThlckr