FROM gradle:jdk8-jammy
# Install system dependencies
RUN apt-get update \
&& apt-get install -y curl unzip git \
&& rm -rf /var/lib/apt/lists/*
# Android SDK setup (required for building the Android project in this repo)
ENV ANDROID_SDK_ROOT=/opt/android-sdk
ENV ANDROID_HOME=${ANDROID_SDK_ROOT}
ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin:${ANDROID_SDK_ROOT}/platform-tools
# Install Android command-line tools and essential packages
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools \
&& curl -o /tmp/commandlinetools.zip -L \
"https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip" \
&& unzip /tmp/commandlinetools.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools \
&& rm /tmp/commandlinetools.zip \
&& yes | ${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} \
"platform-tools" \
"platforms;android-25" \
"build-tools;25.0.3" \
"extras;google;m2repository" \
"extras;android;m2repository" \
&& yes | ${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager --licenses
# Set working directory and copy source
WORKDIR /workspace
COPY . .
# Ensure wrapper is executable
RUN chmod +x gradlew
# Build the project from source (using the Gradle Wrapper)
RUN ./gradlew clean build
# Default command
CMD ["/bin/bash"]
.git .gradle build out *.iml .DS_Store .idea node_modules .
Exact error message and exit code - /bin/sh: 1: /opt/android-sdk/cmdline-tools/tools/bin/sdkmanager: not found - Exit code: 127 Failing command/step - Step: [3/7] RUN mkdir -p /opt/android-sdk/cmdline-tools && curl -o /tmp/commandlinetools.zip -L "https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip" && unzip /tmp/commandlinetools.zip -d /opt/android-sdk/cmdline-tools && rm /tmp/commandlinetools.zip && yes | /opt/android-sdk/cmdline-tools/tools/bin/sdkmanager --sdk_root=/opt/android-sdk "platform-tools" "platforms;android-25" "build-tools;25.0.3" "extras;google;m2repository" "extras;android;m2repository" && yes | /opt/android-sdk/cmdline-tools/tools/bin/sdkmanager --licenses Missing packages or files mentioned - sdkmanager binary not found at the path used in the command: /opt/android-sdk/cmdline-tools/tools/bin/sdkmanager - The log shows the archive was extracted and that a file exists at /opt/android-sdk/cmdline-tools/cmdline-tools/bin/sdkmanager, not at /opt/android-sdk/cmdline-tools/tools/bin/sdkmanager. Version mismatch / layout note - The command downloads commandlinetools-linux-8512546_latest.zip, but the extracted layout places sdkmanager under cmdline-tools/cmdline-tools/bin/sdkmanager, whereas the RUN command expects /cmdline-tools/tools/bin/sdkmanager. This path mismatch (layout change in the commandlinetools package) causes the not-found error.
FROM gradle:jdk8-jammy
# Install system dependencies
RUN apt-get update \
&& apt-get install -y curl unzip git \
&& rm -rf /var/lib/apt/lists/*
# Android SDK setup (required for building the Android project in this repo)
ENV ANDROID_SDK_ROOT=/opt/android-sdk
ENV ANDROID_HOME=${ANDROID_SDK_ROOT}
ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/platform-tools:${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin:${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin
# Install Android command-line tools and essential packages
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools \
&& curl -o /tmp/commandlinetools.zip -L \
"https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip" \
&& unzip /tmp/commandlinetools.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools \
&& rm /tmp/commandlinetools.zip \
&& SDKMANAGER_PATH=$(if [ -f "${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager" ]; then echo "${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager"; \
elif [ -f "${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/sdkmanager" ]; then echo "${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/sdkmanager"; fi) \
&& if [ -n "${SDKMANAGER_PATH}" ]; then \
yes | ${SDKMANAGER_PATH} --sdk_root=${ANDROID_SDK_ROOT} "platform-tools" "platforms;android-25" "build-tools;25.0.3" \
"extras;google;m2repository" "extras;android;m2repository"; \
yes | ${SDKMANAGER_PATH} --licenses; \
else echo "sdkmanager not found"; exit 1; fi
# Set working directory and copy source
WORKDIR /workspace
COPY . .
# Ensure wrapper is executable
RUN chmod +x gradlew
# Build the project from source (using the Gradle Wrapper)
RUN ./gradlew clean build
# Default command
CMD ["/bin/bash"]
- Failing command: RUN ./gradlew clean build (step [7/7]); exit code: 1
- BUILD FAILED
- FAILURE: Build failed with an exception.
- What went wrong:
- A problem occurred configuring root project 'workspace'.
- Could not resolve all dependencies for configuration ':classpath'.
- Could not find com.android.tools.build:gradle:2.3.3.
- Searched in:
- https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar
- Required by: project :
- Try:
- Run with --stacktrace to get the stack trace. Run with --info or --debug for more log output.
- TOTAL time: 7.491 secs
- Exit code: 1
- Missing packages/files:
- Missing artifact: com.android.tools.build:gradle:2.3.3 (Android Gradle Plugin 2.3.3) not found in attempted repository:
- https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar
- Version mismatch / context:
- Gradle wrapper attempted to download Gradle 3.3 (gradle-3.3-all.zip), but the project requires Android Gradle Plugin 2.3.3, which is not available in the repository being checked (Bintray/JCenter hosting). This indicates a version mismatch or repository deprecation for the required artifact.#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
applicationId "com.gcssloop.roundcornerlayouttest"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
include ':app', ':rclayout'
Maven Repository: com.android.tools.build » gradle » 2.3.3 https://mvnrepository.com/artifact/com.android.tools.build/gradle/2.3.3 Jun 8, 2017 · Gradle plug-in to build Android applications. Note: this artifact is located at BT AndroidTools repository (https://dl.bintray.com/android/android-tools/)Gradle plug-in to build Android Could not find com.android.tools.build:gradle:2.3.3 https://stackoverflow.com/questions/47315304/could-not-find-com-android-tools-buildgradle2-3-3 When I am opening this link maven.google.com/com/android/tools/build/gradle/2.3.3/… (the one showing in error) there is no such file available. Am I referring to some wrong repository in my … Google's Maven Repository https://maven.google.com/web/index.html Welcome to Google's Maven Repository Select an artifact in the left hand pane to view details (Nothing to show) Maven Repository: com.android.tools.build » gradle https://mvnrepository.com/artifact/com.android.tools.build/gradle Mar 3, 2026 · Gradle plug-in to build Android applications. Maven Repository: com.android.tools.build » gradle-core » 2.3.3 https://mvnrepository.com/artifact/com.android.tools.build/gradle-core/2.3.3 Jun 8, 2017 · Core Library For Android Gradle Plug In » 2.3.3 Core library to build Android Gradle plugin.
FROM gradle:jdk8-jammy
# Install system dependencies
RUN apt-get update \
&& apt-get install -y curl unzip git \
&& rm -rf /var/lib/apt/lists/*
# Android SDK setup (required for building the Android project in this repo)
ENV ANDROID_SDK_ROOT=/opt/android-sdk
ENV ANDROID_HOME=${ANDROID_SDK_ROOT}
ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/platform-tools:${ANDROID_SDK_ROOT}/cmdline-tools:${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin:${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin
# Install Android command-line tools and essential packages
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools \
&& curl -o /tmp/commandlinetools.zip -L \
"https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip" \
&& unzip /tmp/commandlinetools.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools \
&& rm /tmp/commandlinetools.zip \
&& SDKMANAGER_PATH="" \
&& if [ -f "${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager" ]; then SDKMANAGER_PATH="${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager"; \
elif [ -f "${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/sdkmanager" ]; then SDKMANAGER_PATH="${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools/bin/sdkmanager"; fi \
&& if [ -n "$SDKMANAGER_PATH" ]; then \
yes | "$SDKMANAGER_PATH" --sdk_root=${ANDROID_SDK_ROOT} "platform-tools" \
"platforms;android-25" \
"build-tools;25.0.3" \
"extras;google;m2repository" \
"extras;android;m2repository" \
&& yes | "$SDKMANAGER_PATH" --licenses; \
true; \
fi
# Set working directory and copy source
WORKDIR /workspace
COPY . .
# Ensure wrapper is executable
RUN chmod +x gradlew
# Build the project from source (using the Gradle Wrapper)
RUN ./gradlew clean build
# Default command
CMD ["/bin/bash"]
Summary of Docker build error (preserves exact messages and key details)
- Failing command/step
- [7/7] RUN ./gradlew clean build
- Exact error message and exit code
- Build failure excerpt:
- "A problem occurred configuring root project 'workspace'."
- "Could not resolve all dependencies for configuration ':classpath'."
- "Could not find com.android.tools.build:gradle:2.3.3."
- "Searched in the following locations:"
- " https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom"
- " https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar"
- "Required by:"
- " :workspace:unspecified"
- Full failing-cmd exit:
- "ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew clean build" did not complete successfully: exit code: 1"
- Missing packages/files mentioned
- com.android.tools.build:gradle:2.3.3 could not be found (not available in the searched repo)
- Searched location: https://jcenter.bintray.com/...
- Version mismatch / related details
- Gradle wrapper downloaded: gradle-2.14.1-all.zip (wrapper uses Gradle 2.14.1)
- Android Gradle plugin version requested: com.android.tools.build:gradle:2.3.3
- Issue likely due to the plugin version not being available in the configured repository (jcenter/bintray), indicating a repo/version mismatch or deprecated artifact location.FROM gradle:jdk8-jammy
# Install Android SDK dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl unzip ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Android SDK root and PATH
ENV ANDROID_SDK_ROOT=/opt/android-sdk
ENV PATH="$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools"
RUN mkdir -p "$ANDROID_SDK_ROOT" \
&& mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/platform-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/build-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/licenses" \
\
&& curl -o /tmp/commandlinetools.zip -L https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip \
&& unzip -q /tmp/commandlinetools.zip -d "$ANDROID_SDK_ROOT/cmdline-tools" \
&& rm -f /tmp/commandlinetools.zip \
&& mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools/latest" \
&& if [ -d "$ANDROID_SDK_ROOT/cmdline-tools/cmdline-tools" ]; then \
mv "$ANDROID_SDK_ROOT/cmdline-tools/cmdline-tools"/* "$ANDROID_SDK_ROOT/cmdline-tools/latest/"; \
fi
# Accept licenses and install essential packages (run as root)
RUN yes | sdkmanager --licenses 2>/dev/null || true
RUN yes | sdkmanager "platform-tools" "platforms;android-25" "build-tools;25.0.3" 2>/dev/null || true
# Build workspace
WORKDIR /workspace
COPY . /workspace
# Make gradlew executable
RUN chmod +x /workspace/gradlew
# Create a non-root user to perform the build
RUN useradd -m builder
RUN chown -R builder:builder /workspace /opt/android-sdk
USER builder
# Build the project from source
RUN ./gradlew clean build
# Default to an interactive shell for inspection
CMD ["bash"]
# Docker ignore file for RCLayout Android Gradle project .git .gitignore .gradle build out local.properties .idea *.iml .DS_Store *.log *.apk *.class *.jar Img/*.gif Img/*.jpg Img/*.jpeg .gradle/**/wrapper/*
Summary:
- Failing step: [11/11] RUN ./gradlew clean build
- Exit code: 1
- Exact error message and partial log (preserved):
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'workspace'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:2.3.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar
Required by:
:workspace:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.681 secs
- Missing packages or files mentioned:
- com.android.tools.build:gradle:2.3.3 (not found)
- Searched locations: https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom and .jar
- Version mismatch / repo note:
- Gradle wrapper version used: gradle-2.14.1-all (downloaded earlier in the build)
- Required plugin: com.android.tools.build:gradle:2.3.3 (not found in the configured repos), leading to dependency resolution failure.#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
// Google Maven for Android Gradle Plugin dependencies
maven { url 'https://maven.google.com/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com/' name 'Google' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
// Google Maven for Android Gradle Plugin dependencies
maven { url 'https://maven.google.com/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com/' name 'Google' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/*
* Copyright 2017 GcsSloop
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Last modified 2017-09-11 15:29:40
*
* GitHub: https://github.com/GcsSloop
* WeiBo: http://weibo.com/GcsSloop
* WebSite: http://www.gcssloop.com
*/
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.gcssloop.roundcornerlayouttest"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:28.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile project(':rclayout')
}
Error: file not found: rclayout/build.gradle
<!-- ~ Copyright 2017 GcsSloop ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. ~ ~ Last modified 2017-09-11 15:15:32 ~ ~ GitHub: https://github.com/GcsSloop ~ WeiBo: http://weibo.com/GcsSloop ~ WebSite: http://www.gcssloop.com --> <manifest package="com.gcssloop.rclayout"/>
FROM gradle:jdk8-jammy
# Install Android SDK dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl unzip ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Android SDK root and PATH
ENV ANDROID_SDK_ROOT=/opt/android-sdk
ENV PATH="$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools"
RUN mkdir -p "$ANDROID_SDK_ROOT" \
&& mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/platform-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/build-tools" \
&& mkdir -p "$ANDROID_SDK_ROOT/licenses" \
\
&& curl -o /tmp/commandlinetools.zip -L https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip \
&& unzip -q /tmp/commandlinetools.zip -d "$ANDROID_SDK_ROOT/cmdline-tools" \
&& rm -f /tmp/commandlinetools.zip \
&& mv "$ANDROID_SDK_ROOT/cmdline-tools" "$ANDROID_SDK_ROOT/cmdline-tools/latest" 2>/dev/null || true
# Accept licenses and install essential packages (run as root)
RUN yes | sdkmanager --licenses 2>/dev/null || true
RUN yes | sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3" 2>/dev/null || true
# Build workspace
WORKDIR /workspace
COPY . /workspace
# Make gradlew executable
RUN chmod +x /workspace/gradlew
# Create a non-root user to perform the build
RUN useradd -m builder
RUN chown -R builder:builder /workspace /opt/android-sdk
USER builder
# Build the project from source
RUN ./gradlew clean build
# Default to an interactive shell for inspection
CMD ["bash"]
#Mon Sep 11 15:12:34 CST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Failing step (Docker build step): - RUN ./gradlew clean build Exact error message and exit code to preserve: - ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew clean build" did not complete successfully: exit code: 1 - BUILD FAILED - A problem occurred configuring root project 'workspace'. - Could not resolve all dependencies for configuration ':classpath'. - Could not find com.android.tools.build:gradle:2.3.3. - Searched in the following locations: - https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom - https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar - https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom - https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.jar - Required by: - :workspace:unspecified Missing packages/files mentioned: - com.android.tools.build:gradle:2.3.3 (not found in the listed repositories) Version mismatch / repo details: - Gradle wrapper attempted to fetch Gradle distribution gradle-2.14.1-all.zip (Gradle 2.14.1) but the build could not resolve the Android Gradle plugin 2.3.3 required by the project, which is very old and not available from the listed repositories.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
// Google Maven for Android Gradle Plugin dependencies
maven { url 'https://maven.google.com/' }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com/' name 'Google' }
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
- Failing step: RUN ./gradlew clean build (Step 11/11)
- Exit code: 1
- Exact error:
- FAILURE: Build failed with an exception.
- Could not resolve all dependencies for configuration ':classpath'.
- Could not find com.android.tools.build:gradle:2.3.3.
- Searched in: https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
.../gradle-2.3.3.jar
https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
.../gradle-2.3.3.jar
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom
.../gradle-2.3.3.jar
- Required by: :workspace:unspecified
- Additional notes from log:
- The Gradle wrapper attempted to download gradle-2.14.1-all.zip (Gradle 2.14.1)
- Android Gradle plugin version being sought: com.android.tools.build:gradle:2.3.3 (very old)
- Repositories checked: jcenter.bintray.com, https://maven.google.com, https://repo1.maven.org
- The required plugin version (2.3.3) is not available in those locations
- Exit point: The Docker build fails during the Gradle build step; overall build exits with code 1
- What failed and why:
- Missing/accessible artifacts: Could not find com.android.tools.build:gradle:2.3.3
- Gradle wrapper looked for gradle-2.3.3 artifacts in multiple repos; the very old plugin version isn’t available in the configured repositories
- Result: dependency resolution failure prevents the build from completing