JeroenMols / MethodCountExample

Sample project to shrink huge libraries and reduce their method count.
Apache License 2.0
33 stars 6 forks source link

Could not find dependencies for library I want to shrink #3

Open rohans310 opened 7 years ago

rohans310 commented 7 years ago

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
JeroenMols commented 7 years ago

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