bitrise-steplib / steps-gradle-runner

MIT License
10 stars 28 forks source link

Android gradle version being used seems different then what is specified in build.gradle #63

Closed brinkkemper closed 3 years ago

brinkkemper commented 5 years ago

In our build.gradle we state the following

'compileSdk'       : 27,
'buildToolsVersion': '27.0.3',
'minSdk'           : 16,
'targetSdk'        : 27,

dependencies {
  classpath 'com.android.tools.build:gradle:3.1.3'
}

Using the dependencies above the build succeeds locally, and has been running fine on Bitrise for months untill recently (17-dec-2018)

Then, without changing the above dependencies, suddenly an error popped up. (see below) The error does not happen locally using the code above, but it does happen locally when using the current version of android gradle plugin and required buildtools.

This leds me to believe that somehow their is a conflict between the gradle version we specifiy in our build files, and the gradle version bitrise is using to download dependencies.

The error that is happening on our bitrise build: It seems gradle is looking for handlebars/java while it should look for handlebars.java

* What went wrong:
Execution failed for task ':app:lintVitalHousingQaRelease'.
> Could not resolve all artifacts for configuration ':app:housingMockDebugRuntimeClasspath'.
   > Could not find com.github.jknack.handlebars.java:handlebars:4.1.0.
     Searched in the following locations:
         file:/opt/android-sdk-linux/extras/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         file:/opt/android-sdk-linux/extras/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         file:/opt/android-sdk-linux/extras/google/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         file:/opt/android-sdk-linux/extras/google/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         file:/opt/android-sdk-linux/extras/android/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         file:/opt/android-sdk-linux/extras/android/m2repository/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         file:/bitrise/src/app/libs/handlebars-4.1.0.jar
         file:/bitrise/src/app/libs/handlebars.jar
         http://dl.bintray.com/populov/maven/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         http://dl.bintray.com/populov/maven/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         https://oss.sonatype.org/content/repositories/snapshots/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         https://oss.sonatype.org/content/repositories/snapshots/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         https://maven.fabric.io/public/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         https://maven.fabric.io/public/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         https://jitpack.io/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         https://jitpack.io/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         https://dl.google.com/dl/android/maven2/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         https://dl.google.com/dl/android/maven2/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
         https://jcenter.bintray.com/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.pom
         https://jcenter.bintray.com/com/github/jknack/handlebars/java/handlebars/4.1.0/handlebars-4.1.0.jar
     Required by:
         project :app > com.github.jknack:handlebars:4.1.0

I checked on https://jcenter.bintray.com/com/github/jknack/handlebars/ where gradle is searching for the folder java, and not finding it. I found https://jcenter.bintray.com/com/github/jknack/handlebars.java/ but gradle is not looking here :(

github-actions[bot] commented 3 years ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

github-actions[bot] commented 3 years ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.