title: Why do I get: "preserveIconSpacing is private" error
body: <p>I took an old android project of mine, that was developed on eclipse Luna few years back and tried to revive it.</p>
  
  <p>I have imported it into android studio which I was told can convert it into it's own format and I would be able to continue working on.</p>
  
  <p>After going threw all the initial linking and versions compatibility errors, I got stuck on the following error and cannot get passed it:</p>
  
  <pre><code>c:\....\MyProjectFolder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:643: error: resource android:attr/preserveIconSpacing is private.
  </code></pre>
  
  <p>Any way around this or is it a legit error?</p>
  
  <p>Here is my build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "28.0.3"
  
      defaultConfig {
          applicationId "com.eibimalul.smartgallery"
          minSdkVersion 16
          targetSdkVersion 22
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:gridlayout-v7:19.1.0'
      compile 'com.android.support:appcompat-v7:19.1.0'
      compile files('libs/robobinding-0.8.3-jar-with-dependencies.jar')
      compile files('libs/simple-xml-2.7.1.jar')
      compile files('libs/universal-image-loader-1.9.2.jar')
  }
  </code></pre>
  
  <p><strong>Just to clear the solution:</strong>
  The solution for that error with the great help of the answer of <strong>Mohsen</strong> bellow was:</p>
  
  <ol>
  <li>I have changed the build.gradle content following <strong>Mohsen's</strong> answer bellow, updating old dependencies and changing compile to implementation - error is gone.</li>
  <li>I have followed the solution <a href="https://stackoverflow.com/questions/52014773/error-resource-integer-google-play-services-version-aka-appinteger-google-pla">here</a> to eliminate the second error I have got (resource integer/google_play_services_version) - see bellow.</li>
  </ol>
  
  <p>I now have a third error but it seems not related to the first one, so I believe the main issue was resolved.</p>