Failed to dowload Setup Java for Flutter App

Following is my Github Action setup- 

on:
  push:
    branches:
    - master
    - develop/*
  pull_request:
    branches:
    - master
    - develop/*

jobs:
  build:
    name: Build APK
    runs-on: ubuntu-latest

    container:
      image: google/dart:latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@1
      with:
        java-version: '11.0.5'
    - uses: subosito/flutter-action@v1
      with:
        channel: stable
    - name: Install dependencies
      run: pub get
    - name: Run tests
      run: pub run test
    - run: flutter build apk

I am getting below error- 

Failed to download action 'https://api.github.com/repos/actions/setup-java/tarball/1'. Error Response status code does not indicate success: 404 (Not Found).

Here is the Image of Full Error - 

Thanks in Advance.

Hi @ycv005 , 

The Setup Java action has releases with tags v1.2.0 and v1.3.0. 

You need to use @v1 instead of @1 .

- uses: actions/setup-java@v1
1 Like