question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Can't Build: appcompat-v7 AAPT: error: resource android:attr/fontVariationSettings not found.

See original GitHub issue

Issue I know there is an recent issue from the new google api update. But I can seem to figure this out after many hours of debugging. Any help or insight would be greatly appreciated!

:react-native-push-notification:verifyReleaseResources/home/circleci/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/537c9158e84b60ea7e5743fd405e631a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
    

/home/circleci/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/537c9158e84b60ea7e5743fd405e631a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.
    

android build.gradle

ext {
  compileSdkVersion = 26
  buildToolsVersion = "27.0.3"
  supportLibVersion = "27.1.1"
  googlePlayServicesVersion = "16.+"
}

buildscript {
    ext {
        buildToolsVersion = "27.0.3"
        minSdkVersion = 19
        compileSdkVersion = 26
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
        googlePlayServicesVersion = "16.+"
    }
    repositories {
        google()
        maven{
            url 'https://dl.bintray.com/android/android-tools'
        }
        maven {
            url 'https://maven.google.com/'
            name '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
    }
}

app build.gradle

configurations.all {
    resolutionStrategy {
        force 'com.google.android.gms:play-services-gcm:16.1.0'
    }
}

dependencies {
    implementation(project(':react-native-push-notification')) {
        exclude group: 'com.google.android.gms'
    }
    implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'
    implementation 'com.google.android.gms:play-services-gcm:16.1.0'
    implementation 'com.google.android.gms:play-services-basement:16.1.0'
}

React Native version:

    Binaries:
      Node: 8.11.4 - /var/folders/p3/kvdgygxj5tv_wbvzk308kgz00000gn/T/yarn--1561057276714-0.4231988255188943/node
      Yarn: 1.16.0 - /var/folders/p3/kvdgygxj5tv_wbvzk308kgz00000gn/T/yarn--1561057276714-0.4231988255188943/yarn
      npm: 5.6.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728 
      react-native: ^0.57.4 => 0.57.4 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Steps To Reproduce

  1. ./gradlew assembleSignedRelease

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

10reactions
react-native-botcommented, Jun 20, 2019

It looks like you are using an older version of React Native. Please update to the latest release, v0.59 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
Read more comments on GitHub >

github_iconTop Results From Across the Web

error: resource android:attr/fontVariationSettings not found
This is caused by an incompatibility with the android support library that changed to version 28. I solved the problem by forcing the...
Read more >
Recent Support Library Revisions - Android Developers
Bug fixes. Application crashes with support library 27 and downloadable font; Downloadable fonts not working for new projects created after updating SDK ...
Read more >
Error:(67, 54) No resource found that matches the given name ...
I assume that the code generated by android data-binding library is incompatible with ... Error:(67, 54) No resource found that matches the given...
Read more >
How to fix Android Studio - appcompat-v7:27.+ - YouTube
How to fix Error in Android Studio :could not find any version that matches com. android.support: appcompat-v7 :30.+.
Read more >
aapt: error: attribute android:usespermissionflags not found.
I was getting same error, here's steps i followed to resolve it. -update all files in app.gradle its asking for. - update all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found