Checkout fails with error: cannot lock ref 'refs/remotes/origin/pull/16778': 'refs/remotes/origin/pull' exists;

android
github
git

#1

I am getting below error when I run the builds:

remote: Total 12 (delta 3), reused 5 (delta 3), pack-reused 6
Unpacking objects: 100% (12/12), done.
error: cannot lock ref ‘refs/remotes/origin/pull/16778’: ‘refs/remotes/origin/pull’ exists; cannot create 'refs/remotes/origin/pull/16778’
From github.com:test/android-client
! [new ref] refs/pull/16778/head -> origin/pull/16778 (unable to update local ref)

  • [new tag] 5.3.5.alpha.25oct2017 -> 5.3.5.alpha.25oct2017
    Exited with code 1

The config.yml is as below:-

version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies

It would be great if someone can help me checkout the android project.


#2