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
- Apply plugin: ' Com.android.application '
- Android {
- Compilesdkversion 23
- Buildtoolsversion "23.0.2"
- Defaultconfig {
- ApplicationID "Activity.exceptionhandler.com.exception"
- Minsdkversion 14
- Targetsdkversion 23
- Versioncode 1
- Versionname "1.0"
- }
- Buildtypes {
- Release {
- Minifyenabled false
- Proguardfiles getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro '
- }
- }
- }
- dependencies {
- Compile Filetree (dir: ' Libs ', include: [' *.jar '])
- Compile ' com.android.support:appcompat-v7:23.1.1 '
- }
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