-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAPT: error: resource android:attr/fontVariationSettings not found. #25371
Comments
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety? 👉 Click here if you want to take another look at the Bug Report issue template. |
I am getting this issue as well when I run
You can download a copy of the reproducible app here: |
Hi refer to this here zo0r/react-native-push-notification#1092 (comment) |
i'm also facing to this |
In my case I changed this and then I followed this thread : zo0r/react-native-push-notification#1092 |
Until a fix for this comes, use the below procedure to fix the issue. This happened because Google upgraded libraries for androidX and few react native projects also started supporting it. React Native version 0.60.0 will get support for these libraries, maybe not below that. So you have to use the lower versions for those android libraries. To solve, follow the procedure below.
$ gradlew app:dependencies Search for androidX in the output. Get all the libraries having androidx.
These were the libraries that caused problem in my react native project. |
@shreyakupadhyay Thanks, your solution really works! I tried to resolve this issue for days, including upgrade sdkVersion to 28, and migrate to AndroidX in Android Studio. It can compile successfully but the result apk miss index.bundle.js 。 |
IF your project is on SDK version 27 simply add |
@shreyakupadhyay , what about if none of the put from running |
@jitheshkt Thanks, I was able to get the build the release build! But now the app crashes when I open with the following error
|
I don't know if maybe my error is slightly different, this is the error I get:
None of the fixes that have been suggested have helped. It seems the problem for me is in the
|
I'm facing the exact same error as @uendar, I've noticed that switching between compileSDK 27 and 28 is making no difference. The error . Please help. Android resource linking failed |
Thanks, this helped!
|
@shreyakupadhyay Thanks, this solution solve my problem. I can compile my app but I couldn't generate apk =( So, I put this code in android/build.gradle:
Everything works now! |
Thank you man, this resolved my problem, |
I would like to thankyou for this. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
_~.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\b455673db66bf379c6b553212db86e77\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
~.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\b455673db66bf379c6b553212db86e77\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found._
I am facing this issue.
app/build.gradle
build.gradle
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Why does it happens. Any idea hot to solve this ?
The text was updated successfully, but these errors were encountered: