Failed to resolve: com.android.support:support-v4:28.0.0-rc01












0















I keeping getting these issues once I synced my gradle file. My gradle file looks like this.



android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.calcounter.whattappclone"
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:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support:design:28.0.0-rc02'
implementation 'com.andriod.support:support-v4:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.andriod.support:support-v4:27.0.0-rc01'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'

//implementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


**here is my gradle.project file that i have been using, still errors occur, i have tried changing the dependencies but still same error occurs



buildscript {

repositories {
google()
jcenter()
}
dependencies {

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.google.gms:google-services:3.2.0'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}


Any solutions this? please










share|improve this question

























  • Provide your whole gradle file

    – Mohammed Junaid
    Oct 18 '18 at 12:24











  • and since google has released stable version of v28 library remove -rc** tags from dependency

    – Mohammed Junaid
    Oct 18 '18 at 12:29











  • Have you update your gradle version?

    – ישו אוהב אותך
    Oct 18 '18 at 14:30











  • its working now, thanks guys

    – M B
    Oct 18 '18 at 14:45
















0















I keeping getting these issues once I synced my gradle file. My gradle file looks like this.



android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.calcounter.whattappclone"
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:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support:design:28.0.0-rc02'
implementation 'com.andriod.support:support-v4:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.andriod.support:support-v4:27.0.0-rc01'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'

//implementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


**here is my gradle.project file that i have been using, still errors occur, i have tried changing the dependencies but still same error occurs



buildscript {

repositories {
google()
jcenter()
}
dependencies {

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.google.gms:google-services:3.2.0'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}


Any solutions this? please










share|improve this question

























  • Provide your whole gradle file

    – Mohammed Junaid
    Oct 18 '18 at 12:24











  • and since google has released stable version of v28 library remove -rc** tags from dependency

    – Mohammed Junaid
    Oct 18 '18 at 12:29











  • Have you update your gradle version?

    – ישו אוהב אותך
    Oct 18 '18 at 14:30











  • its working now, thanks guys

    – M B
    Oct 18 '18 at 14:45














0












0








0








I keeping getting these issues once I synced my gradle file. My gradle file looks like this.



android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.calcounter.whattappclone"
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:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support:design:28.0.0-rc02'
implementation 'com.andriod.support:support-v4:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.andriod.support:support-v4:27.0.0-rc01'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'

//implementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


**here is my gradle.project file that i have been using, still errors occur, i have tried changing the dependencies but still same error occurs



buildscript {

repositories {
google()
jcenter()
}
dependencies {

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.google.gms:google-services:3.2.0'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}


Any solutions this? please










share|improve this question
















I keeping getting these issues once I synced my gradle file. My gradle file looks like this.



android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.calcounter.whattappclone"
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:appcompat-v7:28.0.0-rc02'
implementation 'com.android.support:design:28.0.0-rc02'
implementation 'com.andriod.support:support-v4:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.andriod.support:support-v4:27.0.0-rc01'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'

//implementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


**here is my gradle.project file that i have been using, still errors occur, i have tried changing the dependencies but still same error occurs



buildscript {

repositories {
google()
jcenter()
}
dependencies {

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

classpath 'com.google.gms:google-services:3.2.0'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}


Any solutions this? please







android android-studio android-gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 18 '18 at 14:44









Bruno

1,1351718




1,1351718










asked Oct 18 '18 at 12:22









M BM B

35




35













  • Provide your whole gradle file

    – Mohammed Junaid
    Oct 18 '18 at 12:24











  • and since google has released stable version of v28 library remove -rc** tags from dependency

    – Mohammed Junaid
    Oct 18 '18 at 12:29











  • Have you update your gradle version?

    – ישו אוהב אותך
    Oct 18 '18 at 14:30











  • its working now, thanks guys

    – M B
    Oct 18 '18 at 14:45



















  • Provide your whole gradle file

    – Mohammed Junaid
    Oct 18 '18 at 12:24











  • and since google has released stable version of v28 library remove -rc** tags from dependency

    – Mohammed Junaid
    Oct 18 '18 at 12:29











  • Have you update your gradle version?

    – ישו אוהב אותך
    Oct 18 '18 at 14:30











  • its working now, thanks guys

    – M B
    Oct 18 '18 at 14:45

















Provide your whole gradle file

– Mohammed Junaid
Oct 18 '18 at 12:24





Provide your whole gradle file

– Mohammed Junaid
Oct 18 '18 at 12:24













and since google has released stable version of v28 library remove -rc** tags from dependency

– Mohammed Junaid
Oct 18 '18 at 12:29





and since google has released stable version of v28 library remove -rc** tags from dependency

– Mohammed Junaid
Oct 18 '18 at 12:29













Have you update your gradle version?

– ישו אוהב אותך
Oct 18 '18 at 14:30





Have you update your gradle version?

– ישו אוהב אותך
Oct 18 '18 at 14:30













its working now, thanks guys

– M B
Oct 18 '18 at 14:45





its working now, thanks guys

– M B
Oct 18 '18 at 14:45












2 Answers
2






active

oldest

votes


















1














Use the same version and the latest stable version for:



implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.andriod.support:support-v4:28.0.0'


And remove the duplicate (support-v4) one. Update your gradle in your root build.gradle too:



classpath 'com.android.tools.build:gradle:3.2.1'





share|improve this answer
























  • Also consider updating the Firebase dependencies.

    – ʍѳђઽ૯ท
    Oct 18 '18 at 12:31











  • i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

    – M B
    Oct 18 '18 at 12:47





















0














I had a similar problem. It turned out that I had 'Offline work' ticked in settings and this was stopping Android studio going to the internet for dependencies. I did not have the required dependencies on local repo so 'Unable to resolve..' kept happening.
Turning it off solved problem.
This is pretty obvious when I thought about it but it caught me out.






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',
    autoActivateHeartbeat: false,
    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%2f52873932%2ffailed-to-resolve-com-android-supportsupport-v428-0-0-rc01%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Use the same version and the latest stable version for:



    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.andriod.support:support-v4:28.0.0'


    And remove the duplicate (support-v4) one. Update your gradle in your root build.gradle too:



    classpath 'com.android.tools.build:gradle:3.2.1'





    share|improve this answer
























    • Also consider updating the Firebase dependencies.

      – ʍѳђઽ૯ท
      Oct 18 '18 at 12:31











    • i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

      – M B
      Oct 18 '18 at 12:47


















    1














    Use the same version and the latest stable version for:



    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.andriod.support:support-v4:28.0.0'


    And remove the duplicate (support-v4) one. Update your gradle in your root build.gradle too:



    classpath 'com.android.tools.build:gradle:3.2.1'





    share|improve this answer
























    • Also consider updating the Firebase dependencies.

      – ʍѳђઽ૯ท
      Oct 18 '18 at 12:31











    • i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

      – M B
      Oct 18 '18 at 12:47
















    1












    1








    1







    Use the same version and the latest stable version for:



    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.andriod.support:support-v4:28.0.0'


    And remove the duplicate (support-v4) one. Update your gradle in your root build.gradle too:



    classpath 'com.android.tools.build:gradle:3.2.1'





    share|improve this answer













    Use the same version and the latest stable version for:



    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.andriod.support:support-v4:28.0.0'


    And remove the duplicate (support-v4) one. Update your gradle in your root build.gradle too:



    classpath 'com.android.tools.build:gradle:3.2.1'






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 18 '18 at 12:26









    ʍѳђઽ૯ทʍѳђઽ૯ท

    10.7k42879




    10.7k42879













    • Also consider updating the Firebase dependencies.

      – ʍѳђઽ૯ท
      Oct 18 '18 at 12:31











    • i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

      – M B
      Oct 18 '18 at 12:47





















    • Also consider updating the Firebase dependencies.

      – ʍѳђઽ૯ท
      Oct 18 '18 at 12:31











    • i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

      – M B
      Oct 18 '18 at 12:47



















    Also consider updating the Firebase dependencies.

    – ʍѳђઽ૯ท
    Oct 18 '18 at 12:31





    Also consider updating the Firebase dependencies.

    – ʍѳђઽ૯ท
    Oct 18 '18 at 12:31













    i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

    – M B
    Oct 18 '18 at 12:47







    i have done that and still i get this error; Failed to resolve: com.andriod.support:support-v4:28.0.0 Show in File Show in Project Structure dialog

    – M B
    Oct 18 '18 at 12:47















    0














    I had a similar problem. It turned out that I had 'Offline work' ticked in settings and this was stopping Android studio going to the internet for dependencies. I did not have the required dependencies on local repo so 'Unable to resolve..' kept happening.
    Turning it off solved problem.
    This is pretty obvious when I thought about it but it caught me out.






    share|improve this answer




























      0














      I had a similar problem. It turned out that I had 'Offline work' ticked in settings and this was stopping Android studio going to the internet for dependencies. I did not have the required dependencies on local repo so 'Unable to resolve..' kept happening.
      Turning it off solved problem.
      This is pretty obvious when I thought about it but it caught me out.






      share|improve this answer


























        0












        0








        0







        I had a similar problem. It turned out that I had 'Offline work' ticked in settings and this was stopping Android studio going to the internet for dependencies. I did not have the required dependencies on local repo so 'Unable to resolve..' kept happening.
        Turning it off solved problem.
        This is pretty obvious when I thought about it but it caught me out.






        share|improve this answer













        I had a similar problem. It turned out that I had 'Offline work' ticked in settings and this was stopping Android studio going to the internet for dependencies. I did not have the required dependencies on local repo so 'Unable to resolve..' kept happening.
        Turning it off solved problem.
        This is pretty obvious when I thought about it but it caught me out.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 1 at 14:52









        Anthony MullenAnthony Mullen

        61




        61






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52873932%2ffailed-to-resolve-com-android-supportsupport-v428-0-0-rc01%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith