Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,017
Community Members
 
Community Events
168
Community Groups

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,458 views 3 10
Read article

Atlassian Community Events