0

I was trying to use AndroidSlidingUpPanel in my app but when I was trying to build the Gradle file is giving me this warning.

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 26.0.0-alpha1, 23.4.0. Examples include com.android.support:animated-vector-drawable:26.0.0-alpha1 and com.android.support:recyclerview-v7:23.4.0 more... 

I have seen the files in GitHub and saw that the file AndroidSlidingUpPanel/library/build.gradle is using a lower version of :

  1. compile 'com.android.support:support-v4:23.4.0'
  2. compile 'com.android.support:support-annotations:23.4.0'
  3. compile 'com.android.support:recyclerview-v7:23.4.0'

which should be something like this:

  1. compile 'com.android.support:support-v4:26.+'
  2. compile 'com.android.support:support-annotations:26.+'
  3. compile 'com.android.support:recyclerview-v7:26.+'

When I downloaded the library and imported it as module it was giving error too:

Error:(21, 0) Could not read script             
'I:\ANDROID\Android_Studio_Projects\TRYS\Theme3\maven_push.gradle' as it 
does not exist.
<ahref="openFile:I:\ANDROID\Android_Studio_Projects\TRYS\Theme3\library\build.gradle">Open File</a>

Even after copying maven_push.gradle to root it is giving this error:Error:Could not get unknown property 'GROUP' for object of type org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer.

So what to do?

Sayok Majumder
  • 1,012
  • 13
  • 28
  • There are some duplicates: https://stackoverflow.com/questions/42374151/all-com-android-support-libraries-must-use-the-exact-same-version-specification – Steve M Jun 18 '17 at 12:05
  • Yes, I tried those steps but the problem is in Gradle file of the library and I am mot able to find it in the project structure. – Sayok Majumder Jun 18 '17 at 15:11

3 Answers3

0

You have two options

  1. Post an issue in the library on GitHub and wait for the creator to update.

  2. Add it to your project manually by pulling​ the project from git and update the libraries your self.

Gil Goldzweig
  • 1,809
  • 1
  • 13
  • 26
0

open android studio and get to this page enter image description here

press this part enter image description here

it will open a drop-down menu press git and then enter image description here

press clone and your done

Gil Goldzweig
  • 1,809
  • 1
  • 13
  • 26
0

Remove lines referring to maven_push.gradle from the build.gradle on the specified project.

Example:

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

apply from: './mvn-push.gradle'

Just comment them out. I've got this solution after going through this

Atul
  • 3,778
  • 5
  • 47
  • 87