Receive “ Failed to resolve: support-core-utils ” when I add Room Library to my project










1















I have an existing application that uses SQLiteOpenHelper for communicating between the database and app but I decided to migrate to Room. I try every way to add Room component but all of them return to me the same error I make a new project and implement that Room library and worked! but in this project that has SQLiteOpenHelper I gave error .when I add Room Library Code ,I receive this error:



Failed to resolve: support-core-utils


and my build.gradle(module) that I add Room components:



apply plugin: 'com.android.application'
android
compileSdkVersion 27
defaultConfig
applicationId "com.example.yasin.taksmssender"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// used by Room, to test migrations
javaCompileOptions
annotationProcessorOptions
arguments = ["room.schemaLocation":
"$projectDir/schemas".toString()]


sourceSets
androidTest.assets.srcDirs +=
files("$projectDir/schemas".toString())


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:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.1.1'
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'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'
implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
implementation 'com.github.PhilJay:MPAndroidChart:v2.2.4'
implementation 'pub.devrel:easypermissions:1.1.3'

// Room components
implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"



and build.gradle(project):



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript

repositories
google()
jcenter()

dependencies
classpath 'com.android.tools.build:gradle:3.1.4'


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



ext
roomVersion = '1.1.1'
archLifecycleVersion = '1.1.1'

allprojects
repositories
google()
jcenter()
maven url "https://jitpack.io"



task clean(type: Delete)
delete rootProject.buildDir










share|improve this question


























    1















    I have an existing application that uses SQLiteOpenHelper for communicating between the database and app but I decided to migrate to Room. I try every way to add Room component but all of them return to me the same error I make a new project and implement that Room library and worked! but in this project that has SQLiteOpenHelper I gave error .when I add Room Library Code ,I receive this error:



    Failed to resolve: support-core-utils


    and my build.gradle(module) that I add Room components:



    apply plugin: 'com.android.application'
    android
    compileSdkVersion 27
    defaultConfig
    applicationId "com.example.yasin.taksmssender"
    minSdkVersion 15
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    // used by Room, to test migrations
    javaCompileOptions
    annotationProcessorOptions
    arguments = ["room.schemaLocation":
    "$projectDir/schemas".toString()]


    sourceSets
    androidTest.assets.srcDirs +=
    files("$projectDir/schemas".toString())


    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:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:support-v4:27.1.1'
    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'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.squareup.okhttp3:okhttp:3.7.0'
    implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
    implementation 'com.github.PhilJay:MPAndroidChart:v2.2.4'
    implementation 'pub.devrel:easypermissions:1.1.3'

    // Room components
    implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
    annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
    androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"



    and build.gradle(project):



    // Top-level build file where you can add configuration options common to all sub-projects/modules.

    buildscript

    repositories
    google()
    jcenter()

    dependencies
    classpath 'com.android.tools.build:gradle:3.1.4'


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



    ext
    roomVersion = '1.1.1'
    archLifecycleVersion = '1.1.1'

    allprojects
    repositories
    google()
    jcenter()
    maven url "https://jitpack.io"



    task clean(type: Delete)
    delete rootProject.buildDir










    share|improve this question
























      1












      1








      1








      I have an existing application that uses SQLiteOpenHelper for communicating between the database and app but I decided to migrate to Room. I try every way to add Room component but all of them return to me the same error I make a new project and implement that Room library and worked! but in this project that has SQLiteOpenHelper I gave error .when I add Room Library Code ,I receive this error:



      Failed to resolve: support-core-utils


      and my build.gradle(module) that I add Room components:



      apply plugin: 'com.android.application'
      android
      compileSdkVersion 27
      defaultConfig
      applicationId "com.example.yasin.taksmssender"
      minSdkVersion 15
      targetSdkVersion 27
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      // used by Room, to test migrations
      javaCompileOptions
      annotationProcessorOptions
      arguments = ["room.schemaLocation":
      "$projectDir/schemas".toString()]


      sourceSets
      androidTest.assets.srcDirs +=
      files("$projectDir/schemas".toString())


      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:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.android.support:support-v4:27.1.1'
      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'
      implementation 'com.android.support:design:27.1.1'
      implementation 'com.android.support:recyclerview-v7:27.1.1'
      implementation 'com.android.support:cardview-v7:27.1.1'
      implementation 'de.hdodenhof:circleimageview:2.2.0'
      implementation 'com.squareup.okhttp3:okhttp:3.7.0'
      implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
      implementation 'com.github.PhilJay:MPAndroidChart:v2.2.4'
      implementation 'pub.devrel:easypermissions:1.1.3'

      // Room components
      implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
      annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
      androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"



      and build.gradle(project):



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      buildscript

      repositories
      google()
      jcenter()

      dependencies
      classpath 'com.android.tools.build:gradle:3.1.4'


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



      ext
      roomVersion = '1.1.1'
      archLifecycleVersion = '1.1.1'

      allprojects
      repositories
      google()
      jcenter()
      maven url "https://jitpack.io"



      task clean(type: Delete)
      delete rootProject.buildDir










      share|improve this question














      I have an existing application that uses SQLiteOpenHelper for communicating between the database and app but I decided to migrate to Room. I try every way to add Room component but all of them return to me the same error I make a new project and implement that Room library and worked! but in this project that has SQLiteOpenHelper I gave error .when I add Room Library Code ,I receive this error:



      Failed to resolve: support-core-utils


      and my build.gradle(module) that I add Room components:



      apply plugin: 'com.android.application'
      android
      compileSdkVersion 27
      defaultConfig
      applicationId "com.example.yasin.taksmssender"
      minSdkVersion 15
      targetSdkVersion 27
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      // used by Room, to test migrations
      javaCompileOptions
      annotationProcessorOptions
      arguments = ["room.schemaLocation":
      "$projectDir/schemas".toString()]


      sourceSets
      androidTest.assets.srcDirs +=
      files("$projectDir/schemas".toString())


      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:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.android.support:support-v4:27.1.1'
      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'
      implementation 'com.android.support:design:27.1.1'
      implementation 'com.android.support:recyclerview-v7:27.1.1'
      implementation 'com.android.support:cardview-v7:27.1.1'
      implementation 'de.hdodenhof:circleimageview:2.2.0'
      implementation 'com.squareup.okhttp3:okhttp:3.7.0'
      implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
      implementation 'com.github.PhilJay:MPAndroidChart:v2.2.4'
      implementation 'pub.devrel:easypermissions:1.1.3'

      // Room components
      implementation "android.arch.persistence.room:runtime:$rootProject.roomVersion"
      annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
      androidTestImplementation "android.arch.persistence.room:testing:$rootProject.roomVersion"



      and build.gradle(project):



      // Top-level build file where you can add configuration options common to all sub-projects/modules.

      buildscript

      repositories
      google()
      jcenter()

      dependencies
      classpath 'com.android.tools.build:gradle:3.1.4'


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



      ext
      roomVersion = '1.1.1'
      archLifecycleVersion = '1.1.1'

      allprojects
      repositories
      google()
      jcenter()
      maven url "https://jitpack.io"



      task clean(type: Delete)
      delete rootProject.buildDir







      java android android-room






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 18 '18 at 11:03







      user10242795





























          2 Answers
          2






          active

          oldest

          votes


















          0














          Reason probably is that Room does not yet support support-core-utils 27.1.1, but 26.1.0.



          https://mvnrepository.com/artifact/android.arch.persistence.room/runtime/1.1.1






          share|improve this answer






























            -1














            solved this issue by changing



            implementation ('android.arch.persistence.room:runtime:$rootProject.roomVersion',
            exclude group: 'com.android.support', module: 'support-core-utils'
            )





            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%2f51907907%2freceive-failed-to-resolve-support-core-utils-when-i-add-room-library-to-my%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









              0














              Reason probably is that Room does not yet support support-core-utils 27.1.1, but 26.1.0.



              https://mvnrepository.com/artifact/android.arch.persistence.room/runtime/1.1.1






              share|improve this answer



























                0














                Reason probably is that Room does not yet support support-core-utils 27.1.1, but 26.1.0.



                https://mvnrepository.com/artifact/android.arch.persistence.room/runtime/1.1.1






                share|improve this answer

























                  0












                  0








                  0







                  Reason probably is that Room does not yet support support-core-utils 27.1.1, but 26.1.0.



                  https://mvnrepository.com/artifact/android.arch.persistence.room/runtime/1.1.1






                  share|improve this answer













                  Reason probably is that Room does not yet support support-core-utils 27.1.1, but 26.1.0.



                  https://mvnrepository.com/artifact/android.arch.persistence.room/runtime/1.1.1







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 5 at 11:33









                  perzaperza

                  105211




                  105211























                      -1














                      solved this issue by changing



                      implementation ('android.arch.persistence.room:runtime:$rootProject.roomVersion',
                      exclude group: 'com.android.support', module: 'support-core-utils'
                      )





                      share|improve this answer





























                        -1














                        solved this issue by changing



                        implementation ('android.arch.persistence.room:runtime:$rootProject.roomVersion',
                        exclude group: 'com.android.support', module: 'support-core-utils'
                        )





                        share|improve this answer



























                          -1












                          -1








                          -1







                          solved this issue by changing



                          implementation ('android.arch.persistence.room:runtime:$rootProject.roomVersion',
                          exclude group: 'com.android.support', module: 'support-core-utils'
                          )





                          share|improve this answer















                          solved this issue by changing



                          implementation ('android.arch.persistence.room:runtime:$rootProject.roomVersion',
                          exclude group: 'com.android.support', module: 'support-core-utils'
                          )






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 15 '18 at 10:17









                          barbsan

                          2,45051324




                          2,45051324










                          answered Nov 15 '18 at 8:34









                          we.4kwe.4k

                          1




                          1



























                              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%2f51907907%2freceive-failed-to-resolve-support-core-utils-when-i-add-room-library-to-my%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







                              這個網誌中的熱門文章

                              How to read a connectionString WITH PROVIDER in .NET Core?

                              Node.js Script on GitHub Pages or Amazon S3

                              Museum of Modern and Contemporary Art of Trento and Rovereto