Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

android building failed on bitbucket pipeline during lintVital

Edited

Recently, I configured Bitbucket Pipeline to build the android apk.

Here is the `bitbucket-pipelines.yml`

```
pipelines:
    custom:
    QA:
      - step:
        name: Test Release
        size: 2x
        caches:
          - gradle
        script:
          - echo "$KEYSTORE_FILE_BASE64" | base64 -d > android-signing-keystore.jks
          - export GRADLE_OPTS='-XX:+UseG1GC -XX:MaxGCPauseMillis=1000 -Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.configureondemand=true'
          - ./gradlew clean assembleStageRelease appDistributionUploadStageRelease
```

Actually, it worked fine before.
But the building had been failing from last week.

Here is the error log.

```
> Task :app:lintVitalStageRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalStageRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
> Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)
> Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Connection reset
```

If I run the command on my local machine, it works fine now...
```
> ./gradlew clean assembleStageRelease appDistributionUploadStageRelease
```

What problem??

 

-----

I updated the `build.gradle`.

Before:
```
repositories {
    google()
    jcenter()
}
```

After:
```
repositories {
    google()
    mavenCentral()
    jcenter()
}
```

But it same results...

```
* What went wrong:
Execution failed for task ':spooncast:lintVitalStageRelease'.
> Could not resolve all files for configuration ':spooncast:lintClassPath'.
> Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)
> Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Connection reset
```

1 answer

1 accepted

0 votes
Answer accepted

Hi Aaron,

I just wanted to leave a note to say that I replied on Wednesday to the other post you created about this issue:

If you have any questions, please feel free to let me know in the other post or reach out via a support ticket.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

174 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you