Failed to resolve:com.android.support:appcompat-v7:27.0.1 problem solving

Source: Internet
Author: User

Today, in the case of no signs of androidstudio and convulsions, engaged in the majority of days, tried many online programs, and finally solved the problem. Let's take a step-by-step

The first step: This is the initial bug
Error:failed to resolve:com.android.support:support-annotations:27.0.1
Install Repository and Sync Project
Open File
Show in Project Structure dialog
Error:failed to resolve:com.android.support:appcompat-v7:27.0.1
Install Repository and Sync Project
Open File
Show in Project Structure dialog

This can be done by modifying project Gradle and adding maven {URL "https://maven.google.com"}.

Also, open the SDK Manager

Check to see if repository has been downloaded and installed

The second step: The problem is still not solved, even error, habit is good
Error:a problem occurred configuring project ': App '.

Could not resolve all dependencies for configuration ': App:_debugapkcopy '.
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified
MakerOnly0818:app:unspecified > com.gyf.barlibrary:barlibrary:2.1.4
MakerOnly0818:app:unspecified > MakerOnly0818:imagepicker:unspecified
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > com.roughike:bottom-bar:1.3.4
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > com.bigkoo:convenientbanner:2.0.5
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > com.zhy:flowlayout-lib:1.0.3
Could not find com.android.support:support-v4:27.0.1.
Required by:
MakerOnly0818:app:unspecified > MakerOnly0818:slidingmenu:unspecified
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > cn.yipianfengye.android:zxing-library:2.2
Could not find com.android.support:support-v4:27.0.1.
Required by:
MakerOnly0818:app:unspecified > cn.yipianfengye.android:zxing-library:2.2
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > me.weyye.hipermission:library:1.0.3
Could not find com.android.support:appcompat-v7:27.0.1.
Required by:
MakerOnly0818:app:unspecified > Makeronly0818:nim_android_uikit-master:unspecified
MakerOnly0818:app:unspecified > Makeronly0818:nim_android_uikit-master:unspecified > Com.android.support: design:25.0.1
Could not find com.android.support:support-v4:27.0.1.
Required by:
MakerOnly0818:app:unspecified > com.twitter.sdk.android:tweet-ui:3.1.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-base:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-banner:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-interstitial:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-rewardedvideo:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-native-static:4.11.0
MakerOnly0818:app:unspecified > com.twitter.sdk.android:twitter-mopub:3.1.0 > com.mopub:mopub-sdk:4.11.0 > com.mopub:mopub-sdk-native-video:4.11.0
This problem can be done by commenting out the androidtestcompile part of the module's gradle.
The third step: and then burst out the problem, the problem has improved, the error message is getting less and more haha
Error: (+) No resource found that matches the given name:attr ' Android:keyboardnavigationcluster '.
Through one of the following links to solve the answer, StackOverflow may not open, below I introduce: is the solution
https://stackoverflow.com/questions/45301203/ no-resource-found-that-matches-the-given-name-attr-androidkeyboardnavigationc/45307273

Of

Simply, modify the module's Gradle.
1. Change the compilesdkversion to 26
2.buildToolsVersion change "26.0.1"
3.compile ' com.android.support:appcompat-v7:26.0.1 ' replaces the previous version
After 4.sync, you will be prompted to download the update, the problem will be resolved after completion.

Although the problem is solved, but perhaps the solution is not omnipotent, if there are other circumstances can not be resolved also welcome comments, and QQ group 492462202 Welcome to Exchange. Feel helpful and sponsor!

Quote Original: 78732460

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!

Failed to resolve:com.android.support:appcompat-v7:27.0.1 problem solving

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.