title: Migration to AndroidX
body: <p>Well, I started a migration to AndroidX from a year old project (untouched since then) and I have problems withs the resources and the gradle build. Im completely lost with the new namespaces, I changed some of them, I upgraded all the things AndroidStudio told me, but still not recognizing things on my project. I will paste both gradle here and Ill put the error below.</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
  
      repositories {
          google()
          jcenter()
          mavenCentral()
      }
      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
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          mavenCentral()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>Module</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      buildToolsVersion "28.0.3"
      defaultConfig {
          applicationId "com.example.usuario.tm"
          minSdkVersion 15
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "androidx.test:runner:1.1.0-alpha3"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
      dependencies {
          implementation fileTree(dir: 'libs', include: ['*.jar'])
          androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha3', {
              exclude group: 'com.android.support', module: 'support-annotations'
          })
          implementation 'androidx.appcompat:appcompat:1.0.0'
          implementation 'com.android.support.constraint:constraint-layout:1.1.3'
          implementation 'androidx.legacy:legacy-support-v4:1.0.0'
          implementation 'com.google.android.material:material:1.0.0'
          implementation 'com.google.gms:google-services:4.1.0'
          implementation 'com.google.android.gms:play-services-auth:16.0.1'
          testImplementation 'junit:junit:4.12'
      }
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'maven'
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>Android resource linking failed
  Output:  C:\Users\Xrless\Desktop\Programing\TN\TM\app\src\main\res\layout\activity_principal.xml:34: error: attribute android:style not found.
  error: failed linking file resources.
  
  Command: C:\Users\Xrless\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\cf456f090f0725907522fb6d2bec3322\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
          C:\Users\Xrless\AppData\Local\Android\Sdk\platforms\android-28\android.jar\
          --manifest\
          C:\Users\Xrless\Desktop\Programing\TN\TM\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
          -o\
          C:\Users\Xrless\Desktop\Programing\TN\TM\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
          -R\
          @C:\Users\Xrless\Desktop\Programing\TN\TM\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          C:\Users\Xrless\Desktop\Programing\TN\TM\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
          --custom-package\
          com.example.usuario.tm\
          -0\
          apk\
          --output-text-symbols\
          C:\Users\Xrless\Desktop\Programing\TN\TM\app\build\intermediates\symbols\debug\R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
  </code></pre>