Android: Failed to resolve: com.android.support:appcompat-v7:28.1.1











up vote
1
down vote

favorite












Error : Sync failed. Unresolved Android dependencies. Failed to resolve: com.android.support:appcompat-v7:28.1.1



Config:



 apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.ercess.ercess_app1"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:appcompat-v7:28.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}


How to resolve this?










share|improve this question


























    up vote
    1
    down vote

    favorite












    Error : Sync failed. Unresolved Android dependencies. Failed to resolve: com.android.support:appcompat-v7:28.1.1



    Config:



     apply plugin: 'com.android.application'

    android {
    compileSdkVersion 28
    defaultConfig {
    applicationId "com.ercess.ercess_app1"
    minSdkVersion 15
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }



    dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:appcompat-v7:28.1.1'
    implementation 'com.squareup.picasso:picasso:2.71828'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    }


    How to resolve this?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Error : Sync failed. Unresolved Android dependencies. Failed to resolve: com.android.support:appcompat-v7:28.1.1



      Config:



       apply plugin: 'com.android.application'

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.ercess.ercess_app1"
      minSdkVersion 15
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      }



      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.android.support:appcompat-v7:28.1.1'
      implementation 'com.squareup.picasso:picasso:2.71828'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

      }


      How to resolve this?










      share|improve this question













      Error : Sync failed. Unresolved Android dependencies. Failed to resolve: com.android.support:appcompat-v7:28.1.1



      Config:



       apply plugin: 'com.android.application'

      android {
      compileSdkVersion 28
      defaultConfig {
      applicationId "com.ercess.ercess_app1"
      minSdkVersion 15
      targetSdkVersion 28
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      }
      }



      dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.android.support:appcompat-v7:28.1.1'
      implementation 'com.squareup.picasso:picasso:2.71828'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

      }


      How to resolve this?







      android






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 22 at 7:47









      Debbie

      177211




      177211
























          6 Answers
          6






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Replace



          implementation 'com.android.support:appcompat-v7:28.1.1


          with



          implementation 'com.android.support:appcompat-v7:28.0.0-rc01'


          Currently, the most recent available release for appCompat is 28.0.0-rc01, you are trying to pull an unavailable version of appcompat library.






          share|improve this answer



















          • 1




            rc01 is a release candidate ...and not the latest stable version.
            – Martin Zeitler
            Aug 22 at 8:15




















          up vote
          0
          down vote













          Root cause: The version 28.1.1 is not exist.



          Solution: Use the latest stable version



          implementation 'com.android.support:appcompat-v7:27.1.1'


          or use latest unstable version



          implementation 'com.android.support:appcompat-v7:28.0.0-rc01'





          share|improve this answer




























            up vote
            0
            down vote













            Please add these below dependencies to solve the issue, try it:



            implementation 'com.android.support:support-v4:27.1.1'
            implementation 'com.android.support:support-v13:27.1.1'
            implementation 'com.android.support:design:27.1.1'


            also change the version of AppCompat as:



            implementation 'com.android.support:appcompat-v7:27.1.1'


            AppCompat Sometimes doesn't work alone. Adding these might solve your issue.






            share|improve this answer




























              up vote
              0
              down vote













              you'd have to use api "com.android.support:appcompat-v7:27.1.1" -



              or the later (future) api "androidx.appcompat:appcompat:1.0.0-alpha1"
              from androidx.



              using "release candidates" and "alpha versions" is discouraged, because these are not well tested.



              just see the official documentation ...it recommends 27.1.1.






              share|improve this answer






























                up vote
                0
                down vote













                replace



                implementation 'com.android.support:appcompat-v7:28.1.1' 


                with



                implementation 'com.android.support:appcompat-v7:28.0.0-rc02'





                share|improve this answer




























                  up vote
                  0
                  down vote













                  I solved this by trial and error and using some of the answers above.



                  I changed the appcompat to a lower version "com.android.support:appcompat-v7:27.1.0"
                  along with changing



                  compileSdkVersion 27


                  and
                  targetSdkVersion 27



                  I'm still getting warnings but Picasso should now run.






                  share|improve this answer





















                    Your Answer






                    StackExchange.ifUsing("editor", function () {
                    StackExchange.using("externalEditor", function () {
                    StackExchange.using("snippets", function () {
                    StackExchange.snippets.init();
                    });
                    });
                    }, "code-snippets");

                    StackExchange.ready(function() {
                    var channelOptions = {
                    tags: "".split(" "),
                    id: "1"
                    };
                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                    StackExchange.using("externalEditor", function() {
                    // Have to fire editor after snippets, if snippets enabled
                    if (StackExchange.settings.snippets.snippetsEnabled) {
                    StackExchange.using("snippets", function() {
                    createEditor();
                    });
                    }
                    else {
                    createEditor();
                    }
                    });

                    function createEditor() {
                    StackExchange.prepareEditor({
                    heartbeatType: 'answer',
                    convertImagesToLinks: true,
                    noModals: true,
                    showLowRepImageUploadWarning: true,
                    reputationToPostImages: 10,
                    bindNavPrevention: true,
                    postfix: "",
                    imageUploader: {
                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                    allowUrls: true
                    },
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    });


                    }
                    });














                     

                    draft saved


                    draft discarded


















                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51962088%2fandroid-failed-to-resolve-com-android-supportappcompat-v728-1-1%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest
































                    6 Answers
                    6






                    active

                    oldest

                    votes








                    6 Answers
                    6






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes








                    up vote
                    1
                    down vote



                    accepted










                    Replace



                    implementation 'com.android.support:appcompat-v7:28.1.1


                    with



                    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'


                    Currently, the most recent available release for appCompat is 28.0.0-rc01, you are trying to pull an unavailable version of appcompat library.






                    share|improve this answer



















                    • 1




                      rc01 is a release candidate ...and not the latest stable version.
                      – Martin Zeitler
                      Aug 22 at 8:15

















                    up vote
                    1
                    down vote



                    accepted










                    Replace



                    implementation 'com.android.support:appcompat-v7:28.1.1


                    with



                    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'


                    Currently, the most recent available release for appCompat is 28.0.0-rc01, you are trying to pull an unavailable version of appcompat library.






                    share|improve this answer



















                    • 1




                      rc01 is a release candidate ...and not the latest stable version.
                      – Martin Zeitler
                      Aug 22 at 8:15















                    up vote
                    1
                    down vote



                    accepted







                    up vote
                    1
                    down vote



                    accepted






                    Replace



                    implementation 'com.android.support:appcompat-v7:28.1.1


                    with



                    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'


                    Currently, the most recent available release for appCompat is 28.0.0-rc01, you are trying to pull an unavailable version of appcompat library.






                    share|improve this answer














                    Replace



                    implementation 'com.android.support:appcompat-v7:28.1.1


                    with



                    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'


                    Currently, the most recent available release for appCompat is 28.0.0-rc01, you are trying to pull an unavailable version of appcompat library.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 7 at 7:47









                    Faysal Ahmed

                    3,28041128




                    3,28041128










                    answered Aug 22 at 7:48









                    Qasim

                    1,65211437




                    1,65211437








                    • 1




                      rc01 is a release candidate ...and not the latest stable version.
                      – Martin Zeitler
                      Aug 22 at 8:15
















                    • 1




                      rc01 is a release candidate ...and not the latest stable version.
                      – Martin Zeitler
                      Aug 22 at 8:15










                    1




                    1




                    rc01 is a release candidate ...and not the latest stable version.
                    – Martin Zeitler
                    Aug 22 at 8:15






                    rc01 is a release candidate ...and not the latest stable version.
                    – Martin Zeitler
                    Aug 22 at 8:15














                    up vote
                    0
                    down vote













                    Root cause: The version 28.1.1 is not exist.



                    Solution: Use the latest stable version



                    implementation 'com.android.support:appcompat-v7:27.1.1'


                    or use latest unstable version



                    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'





                    share|improve this answer

























                      up vote
                      0
                      down vote













                      Root cause: The version 28.1.1 is not exist.



                      Solution: Use the latest stable version



                      implementation 'com.android.support:appcompat-v7:27.1.1'


                      or use latest unstable version



                      implementation 'com.android.support:appcompat-v7:28.0.0-rc01'





                      share|improve this answer























                        up vote
                        0
                        down vote










                        up vote
                        0
                        down vote









                        Root cause: The version 28.1.1 is not exist.



                        Solution: Use the latest stable version



                        implementation 'com.android.support:appcompat-v7:27.1.1'


                        or use latest unstable version



                        implementation 'com.android.support:appcompat-v7:28.0.0-rc01'





                        share|improve this answer












                        Root cause: The version 28.1.1 is not exist.



                        Solution: Use the latest stable version



                        implementation 'com.android.support:appcompat-v7:27.1.1'


                        or use latest unstable version



                        implementation 'com.android.support:appcompat-v7:28.0.0-rc01'






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Aug 22 at 7:52









                        Son Truong

                        3,0263828




                        3,0263828






















                            up vote
                            0
                            down vote













                            Please add these below dependencies to solve the issue, try it:



                            implementation 'com.android.support:support-v4:27.1.1'
                            implementation 'com.android.support:support-v13:27.1.1'
                            implementation 'com.android.support:design:27.1.1'


                            also change the version of AppCompat as:



                            implementation 'com.android.support:appcompat-v7:27.1.1'


                            AppCompat Sometimes doesn't work alone. Adding these might solve your issue.






                            share|improve this answer

























                              up vote
                              0
                              down vote













                              Please add these below dependencies to solve the issue, try it:



                              implementation 'com.android.support:support-v4:27.1.1'
                              implementation 'com.android.support:support-v13:27.1.1'
                              implementation 'com.android.support:design:27.1.1'


                              also change the version of AppCompat as:



                              implementation 'com.android.support:appcompat-v7:27.1.1'


                              AppCompat Sometimes doesn't work alone. Adding these might solve your issue.






                              share|improve this answer























                                up vote
                                0
                                down vote










                                up vote
                                0
                                down vote









                                Please add these below dependencies to solve the issue, try it:



                                implementation 'com.android.support:support-v4:27.1.1'
                                implementation 'com.android.support:support-v13:27.1.1'
                                implementation 'com.android.support:design:27.1.1'


                                also change the version of AppCompat as:



                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                AppCompat Sometimes doesn't work alone. Adding these might solve your issue.






                                share|improve this answer












                                Please add these below dependencies to solve the issue, try it:



                                implementation 'com.android.support:support-v4:27.1.1'
                                implementation 'com.android.support:support-v13:27.1.1'
                                implementation 'com.android.support:design:27.1.1'


                                also change the version of AppCompat as:



                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                AppCompat Sometimes doesn't work alone. Adding these might solve your issue.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Aug 22 at 7:53









                                Ümañg ßürmån

                                2,6232728




                                2,6232728






















                                    up vote
                                    0
                                    down vote













                                    you'd have to use api "com.android.support:appcompat-v7:27.1.1" -



                                    or the later (future) api "androidx.appcompat:appcompat:1.0.0-alpha1"
                                    from androidx.



                                    using "release candidates" and "alpha versions" is discouraged, because these are not well tested.



                                    just see the official documentation ...it recommends 27.1.1.






                                    share|improve this answer



























                                      up vote
                                      0
                                      down vote













                                      you'd have to use api "com.android.support:appcompat-v7:27.1.1" -



                                      or the later (future) api "androidx.appcompat:appcompat:1.0.0-alpha1"
                                      from androidx.



                                      using "release candidates" and "alpha versions" is discouraged, because these are not well tested.



                                      just see the official documentation ...it recommends 27.1.1.






                                      share|improve this answer

























                                        up vote
                                        0
                                        down vote










                                        up vote
                                        0
                                        down vote









                                        you'd have to use api "com.android.support:appcompat-v7:27.1.1" -



                                        or the later (future) api "androidx.appcompat:appcompat:1.0.0-alpha1"
                                        from androidx.



                                        using "release candidates" and "alpha versions" is discouraged, because these are not well tested.



                                        just see the official documentation ...it recommends 27.1.1.






                                        share|improve this answer














                                        you'd have to use api "com.android.support:appcompat-v7:27.1.1" -



                                        or the later (future) api "androidx.appcompat:appcompat:1.0.0-alpha1"
                                        from androidx.



                                        using "release candidates" and "alpha versions" is discouraged, because these are not well tested.



                                        just see the official documentation ...it recommends 27.1.1.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Aug 22 at 8:18

























                                        answered Aug 22 at 8:04









                                        Martin Zeitler

                                        11.1k33559




                                        11.1k33559






















                                            up vote
                                            0
                                            down vote













                                            replace



                                            implementation 'com.android.support:appcompat-v7:28.1.1' 


                                            with



                                            implementation 'com.android.support:appcompat-v7:28.0.0-rc02'





                                            share|improve this answer

























                                              up vote
                                              0
                                              down vote













                                              replace



                                              implementation 'com.android.support:appcompat-v7:28.1.1' 


                                              with



                                              implementation 'com.android.support:appcompat-v7:28.0.0-rc02'





                                              share|improve this answer























                                                up vote
                                                0
                                                down vote










                                                up vote
                                                0
                                                down vote









                                                replace



                                                implementation 'com.android.support:appcompat-v7:28.1.1' 


                                                with



                                                implementation 'com.android.support:appcompat-v7:28.0.0-rc02'





                                                share|improve this answer












                                                replace



                                                implementation 'com.android.support:appcompat-v7:28.1.1' 


                                                with



                                                implementation 'com.android.support:appcompat-v7:28.0.0-rc02'






                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Sep 14 at 14:59









                                                Marco Tondini

                                                5316




                                                5316






















                                                    up vote
                                                    0
                                                    down vote













                                                    I solved this by trial and error and using some of the answers above.



                                                    I changed the appcompat to a lower version "com.android.support:appcompat-v7:27.1.0"
                                                    along with changing



                                                    compileSdkVersion 27


                                                    and
                                                    targetSdkVersion 27



                                                    I'm still getting warnings but Picasso should now run.






                                                    share|improve this answer

























                                                      up vote
                                                      0
                                                      down vote













                                                      I solved this by trial and error and using some of the answers above.



                                                      I changed the appcompat to a lower version "com.android.support:appcompat-v7:27.1.0"
                                                      along with changing



                                                      compileSdkVersion 27


                                                      and
                                                      targetSdkVersion 27



                                                      I'm still getting warnings but Picasso should now run.






                                                      share|improve this answer























                                                        up vote
                                                        0
                                                        down vote










                                                        up vote
                                                        0
                                                        down vote









                                                        I solved this by trial and error and using some of the answers above.



                                                        I changed the appcompat to a lower version "com.android.support:appcompat-v7:27.1.0"
                                                        along with changing



                                                        compileSdkVersion 27


                                                        and
                                                        targetSdkVersion 27



                                                        I'm still getting warnings but Picasso should now run.






                                                        share|improve this answer












                                                        I solved this by trial and error and using some of the answers above.



                                                        I changed the appcompat to a lower version "com.android.support:appcompat-v7:27.1.0"
                                                        along with changing



                                                        compileSdkVersion 27


                                                        and
                                                        targetSdkVersion 27



                                                        I'm still getting warnings but Picasso should now run.







                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered Sep 18 at 17:09









                                                        Ovalman

                                                        1112




                                                        1112






























                                                             

                                                            draft saved


                                                            draft discarded



















































                                                             


                                                            draft saved


                                                            draft discarded














                                                            StackExchange.ready(
                                                            function () {
                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51962088%2fandroid-failed-to-resolve-com-android-supportappcompat-v728-1-1%23new-answer', 'question_page');
                                                            }
                                                            );

                                                            Post as a guest




















































































                                                            這個網誌中的熱門文章

                                                            Tangent Lines Diagram Along Smooth Curve

                                                            Yusuf al-Mu'taman ibn Hud

                                                            Zucchini