gradle: Could not find com.android.support:multidex:1.0.1

25,091

Solution 1

You need to install "Android Support Repository" from the Android SDK manager. (a.k.a extra-android-m2repository if installing from the command line)

**OR**

You need to install "Android Support Library(Obsolete)" from the Android SDK manager.

Solution 2

This issue exists in Android studio Beta versions The only solution is to use

repositories {
    maven {
        url 'https://maven.google.com'
    }
}

in project gradle file

Share:
25,091

Related videos on Youtube

stackvoid
Author by

stackvoid

Android Developer. Crazy in Android & HTML5 & Node & Product Design & User Experience.

Updated on September 15, 2022

Comments

  • stackvoid
    stackvoid almost 2 years

    when I use gradle(version 2.1 or 2.4) building Android Project, get the error below. I can not find com.android.support:multidex:1.0.1 in my files.

    ERRORS:

    config is set to BF688C717A5C3A69FE8CA522643C0A68
    config is set to PRODUCT
    vcode is set to 151
    vname is set to 1.5.1
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    
    A problem occurred configuring project ':XXXX'.
    
     Could not resolve all dependencies for configuration 
    
    ':yizhangtong:_rendepeng_lmDebugCompile'.
    
        Could not find com.android.support:multidex:1.0.1.
    
         Searched in the following locations:
    
    .............
    
    * 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: 30.178 secs
    
    • kaya
      kaya
      Find sdk location and multidex path like this; "\android-sdk\extras\android\m2repository\com\android\suppor‌​t\multidex". You'll see versions already downloaded. just use last version. If still gets same error, check your sdk location.
  • tokland
    tokland almost 9 years
    Worked for me (android GUI: Extras -> Android Support Repository)
  • stackvoid
    stackvoid almost 9 years
    in build script, [compile 'com.android.support:multidex:1.0.0'] existed. but still get the error
  • stackvoid
    stackvoid almost 9 years
    I download "Android Support Repository", rebuild but still gets the error.
  • Kiryl Ivanou
    Kiryl Ivanou over 8 years
    the same for me as for stackvoid
  • Kiryl Ivanou
    Kiryl Ivanou over 8 years
    the same for me as for stackvoid
  • CTN
    CTN over 7 years
    @stackvoid try second option.

Related