Error compiling multidex library after updating SDK

I am new to Android Studio.

I have successfully converted an Eclipse project to Android Studio. everything worked fine, until today I updated my SDK and suddenly started giving me an error.

> Error: A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.android.support:multidex:1.0.1.
     Searched in the following locations:
     https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
     https://jcenter.bintray.com/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
     https://jitpack.io/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
     https://jitpack.io/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
     file:/C:/Users/as/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
     file:/C:/Users/as/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
     file:/C:/Users/as/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
     file:/C:/Users/as/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
 Required by:
     ElalaSeller:app:unspecified

when I rebuild my project. He says

Error:(25, 13) Failed to resolve: com.android.support:multidex:1.0.1
    Install Repository and sync project
    Show in File
    Show in Project Structure dialog

I checked the Android support repository.

enter image description here

Any help would be appreciated.

Thank.

Update: I checked this Question. most of the respondents said they installed the Android Support Repository. but in my case I already installed it. you can see in the screenshot I downloaded. but still getting the same error.

I cleaned up my project, but still no change.

+4

Source: https://habr.com/ru/post/1655791/


All Articles