MethodCountExample icon indicating copy to clipboard operation
MethodCountExample copied to clipboard

Could not find dependencies for library I want to shrink

Open rohans310 opened this issue 8 years ago • 1 comments

Hi, Thanks for the sample project! The blog post was really helpful. I am dealing with multidex issues and trying to shrink one of the libraries in my project

When I replace guava in shrink_lib/build.gradle with the other library I get this exception. I tried updating the app/build.gradle with the dependencies but it's not working. Any idea what the issue might be?

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://repo1.maven.org/maven2/com/android/support/multidex/1.0.1/multidex-1.0.1.pom
         https://repo1.maven.org/maven2/com/android/support/multidex/1.0.1/multidex-1.0.1.jar
Could not find com.android.support:support-v4:24.2.1.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/support-v4/24.2.1/support-v4-24.2.1.pom
         https://jcenter.bintray.com/com/android/support/support-v4/24.2.1/support-v4-24.2.1.jar
         file:/Users/rohan/.m2/repository/com/android/support/support-v4/24.2.1/support-v4-24.2.1.pom
         file:/Users/rohan/.m2/repository/com/android/support/support-v4/24.2.1/support-v4-24.2.1.jar
         https://repo1.maven.org/maven2/com/android/support/support-v4/24.2.1/support-v4-24.2.1.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/24.2.1/support-v4-24.2.1.jar

rohans310 avatar Feb 04 '17 00:02 rohans310

You need to install the android support repository using the SDK manager.

JeroenMols avatar Feb 04 '17 16:02 JeroenMols