Error compile 'com.android.support:support-v7:19.+'

-1

I made the update today android is giving the following errors

  

Error: com.android.support: support-v4: 19. +    <a href="searchInBuildFiles">Search in build.gradle files</a>

Then I double-click OK but I'll execute the following

Error: A problem occurred configuring project ': app'.

  

Could not resolve all dependencies for configuration ': app: _debugCompile'.   Could not find any version that matches com.android.support:support-v4:19.+.        Required by:            Home_Monitoring: app: unspecified

NOTE: I downloaded the Android support library 19.1 and the tools SDK 19.1

    
asked by anonymous 16.06.2014 / 15:56

1 answer

1

Solution found:

  • Go to where the SDK (which the android studio / eclipse is using) is located. If it's Android studio, go to extras\android\m2repository\com\android\support\ . If it is the eclipse, go to \extras\android\support\
  • See which folders you have, in the example it has gridlayout-v7 , support-v4 and support-v13 .
  • Click on support-v4 and see what is the next folder number, in the example it was named for 13.0
  • Since you are using "com.android.support:support-v4:18.0.+", change this to reflect the version you have, for example, here we have support-v4 so the first part v4 remains the same . Since the next path is 13.0, change your 18.0 too:

    "com.android.support:support-v4:13.0.+"
    

    Update:

    I noticed that I had the android studio created with the wrong SDK and that's what caused the difficulty in updating! The path should be C: \ Users \ Username \ AppData \ Local \ Android \ android-sdk \ extras \

    Also, note if your SDK is up to date, the code will be:

    "com.android.support:support-v4:19.0.+"
    

    Source: Here

        
    16.06.2014 / 16:14