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

Asked

Viewed 219 times

-1

I made the update today android this 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 more I will run appears 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: House_monitoring:app:unspecified

OBS: I downloaded Android library 19.1 support and SDK 19.1 tools

  • Using the Android Studio?

  • Yes! I am giving a search can be pq not installed the Android Support Repository 5?

  • 1

    Check this out: http://stackoverflow.com/questions/19958213/how-to-add-android-support-repository-to-android-studio

  • translate the content of the post I mentioned, could you check if it solves your problem? I’m sorry, but I don’t have the means to simulate your problem right now.

  • Thanks Staff I managed to resolve really needed Download Android Support Repository and give a Restart on cogido that worked.

1 answer

1


Solution found:

  1. 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’s the eclipse, go to \extras\android\support\
  2. See which folders you have, in the example it had gridlayout-v7, support-v4 and support-v13.
  3. Click on support-v4 and see what is the number of the next folder, in the example was named to 13.0

As long as you’re using "com.android.support:support-v4:18.0.+" change this to reflect the version you have, for example, here we have support-v4 then 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.+"

Updating:

I noticed that I had android studio created with the wrong SDK and that was what caused the difficulty in updating! The path must be C: Users Username Appdata Local 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.