Error in build.gradle after running compile

This topic contains 1 reply, has 2 voices, and was last updated by  Scott Lang 2 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38529

    Dante
    Participant

    I get error after compiling :

    Configure project :app
    WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Project evaluation failed including an error in afterEvaluate {}. Run with –stacktrace for details of the afterEvaluate {} error.

    FAILURE: Build failed with an exception.

    * Where:
    Build file ‘F:\WPLMS-APP\2.7.1\interlan\platforms\android\app\build.gradle’ line: 102

    * What went wrong:
    A problem occurred evaluating project ‘:app’.
    > Could not resolve all artifacts for configuration ‘classpath’.
    > Could not download sdk-common.jar (com.android.tools:sdk-common:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.6.0-beta04/sdk-common-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download ddmlib.jar (com.android.tools.ddms:ddmlib:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.6.0-beta04/ddmlib-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download repository.jar (com.android.tools:repository:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.6.0-beta04/repository-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download common.jar (com.android.tools:common:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/common/26.6.0-beta04/common-26.6.0-beta04.jar’.
    > Read timed out

    * Try:
    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 1m 35s
    F:\WPLMS-APP\2.7.1\interlan\platforms\android\gradlew: Command failed with exit code 1 Error output:
    Project evaluation failed including an error in afterEvaluate {}. Run with –stacktrace for details of the afterEvaluate {} error.

    FAILURE: Build failed with an exception.

    * Where:
    Build file ‘F:\WPLMS-APP\2.7.1\interlan\platforms\android\app\build.gradle’ line: 102

    * What went wrong:
    A problem occurred evaluating project ‘:app’.
    > Could not resolve all artifacts for configuration ‘classpath’.
    > Could not download sdk-common.jar (com.android.tools:sdk-common:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.6.0-beta04/sdk-common-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download ddmlib.jar (com.android.tools.ddms:ddmlib:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.6.0-beta04/ddmlib-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download repository.jar (com.android.tools:repository:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.6.0-beta04/repository-26.6.0-beta04.jar’.
    > Read timed out
    > Could not download common.jar (com.android.tools:common:26.6.0-beta04)
    > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/common/26.6.0-beta04/common-26.6.0-beta04.jar’.
    > Read timed out

    #38899

    Scott Lang
    Keymaster

    Hi,

    It can be the issue of android studio refer to these images for the android studio: http://prntscr.com/q0msbn    http://prntscr.com/q0mvt1

    Also make sure you gradle in configured :  https://gradle.org/install/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.