Could not find com.android.support:appcompat-v7:23.1.1

Source: Internet
Author: User

In the new contact with Android studio, this thing is really laborious, now contact more, feel good, after all, there is a space for ascension, the inevitable trend in the future, so still concentrated on the good to engage in.

Talk less, cut to the chase.

The error hint, Could not find com.android.support:appcompat-v7 : 23.1.1, the system does not find the corresponding version of the 23.1.1 package, that is, the Lib folder does not have the configuration you requested, so next you need to consider how the system needs to go into the package.

Solution:

1. Copy the required jar to the corresponding Lib folder.

2. Check if the private libaries and dependencies in the order and export in the build path are checked, the correct option is to tick. Then clean the whole project, and then run the can. Or remove first, and then add it in. This method works equally well in eclipse.

3, through the SDK Manager to download the required SDK, especially the extras option, it is recommended to select all and download the attempt to solve the problem. As shown in.

4, modify the Build.gradle file under the Compilesdkversion,

Buildtoolsversion information, especially dependencies inside the compile ' com.android.support:appcompat-v7:23.1.0 ' content, Change to the appropriate version of the jar package you own (this method is particularly important).

Enclose the contents of the Build.gradle file for easy comparison.

[Plain]View PlainCopy
  1. Apply plugin: ' Com.android.application '
  2. Android {
  3. Compilesdkversion 23
  4. Buildtoolsversion "23.0.2"
  5. Defaultconfig {
  6. ApplicationID "Activity.exceptionhandler.com.exception"
  7. Minsdkversion 14
  8. Targetsdkversion 23
  9. Versioncode 1
  10. Versionname "1.0"
  11. }
  12. Buildtypes {
  13. Release {
  14. Minifyenabled false
  15. Proguardfiles getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro '
  16. }
  17. }
  18. }
  19. dependencies {
  20. Compile Filetree (dir: ' Libs ', include: [' *.jar '])
  21. Compile ' com.android.support:appcompat-v7:23.1.1 '
  22. }

Note Where to modify:

1, dependencies inside of the compile ' com.android.support:appcompat-v7:23.1.1 ', modified into the corresponding version can be.

2, Compilesdkversion, Buildtoolsversion, Minsdkversion, and so on, these attention can be.

Quote Original: 51042335

Blog is to remember that they are easy to forget things, but also a summary of their work, the article can be reproduced, without copyright. Hope to do their own efforts to do better, we work together to improve!

If there is any problem, welcome to discuss together, code if there is a problem, you are welcome to the great God!

Could not find com.android.support:appcompat-v7:23.1.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.