Android buildscript repositories: jcenter VS mavencentral

At Bintray I just rebloged a very detailed blog post describing the reasons why Google made this change. Here are the most important points: JCenter is a Java repository in Bintray, which is the largest repo in the world for Java and Android OSS libraries, packages and components. All the content in JCenter is served … Read more

Could not find com.android.tools.build:gradle:4.0.1 ( or any version )

This solution may only work in Iran. If you know that’s working out of Iran, please let others know. Why would a proxy be necessary? There have been a number of technology-related sanctions against Iran. Windows go to -> File | Settings | Appearance & Behavior | System Settings | HTTP Proxy, and choose -> … Read more

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’ } }