Android CI build: Could not find aapt2-proto.jar

Try moving the google() method to the top of its execution block. Maybe it’s the order of repositories it searches in that causes the issue. So for example, change this: repositories { maven { url ‘https://maven.fabric.io/public’ } google() // from here mavenCentral() } To this: repositories { google() // to here maven { url ‘https://maven.fabric.io/public’ … Read more

Couldn’t locate lint-gradle-api-26.1.2.jar for Flutter project

I solved the problem by moving: maven { url ‘https://dl.google.com/dl/android/maven2’ } in the top of: jcenter() in the file: .flutter/packages/flutter_tools/gradle/flutter.gradle: buildscript { repositories { maven { url ‘https://dl.google.com/dl/android/maven2’ } jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:3.1.2’ } }