Skip to content

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font #694

Closed
@nandini12396

Description

@nandini12396

Bug

I am getting the following errors:
ERROR: In FontFamilyFont, unable to find attribute android:font
ERROR: In FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex
ERROR: In GradientColor, unable to find attribute android:endX
ERROR: In GradientColor, unable to find attribute android:endY
ERROR: In GradientColor, unable to find attribute android:startX
ERROR: In GradientColor, unable to find attribute android:startY
ERROR: In GradientColorItem, unable to find attribute android:offset

:react-native-device-info:processReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-device-info:processReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

Environment info

Environment:
OS: Windows 10
Node: 10.13.0
Yarn: 1.12.3
npm: 6.4.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

Packages: (wanted => installed)
react: 16.3.2 => 16.3.2
react-native: 0.55.4 => 0.55.4
React native info output:

"react-native-device-info": "^0.21.5",

Activity

javascriptNode

javascriptNode commented on Jun 18, 2019

@javascriptNode

我也遇到了就是今天

myshowject

myshowject commented on Jun 18, 2019

@myshowject

我也遇到这个报错

cheneywan

cheneywan commented on Jun 18, 2019

@cheneywan

The same problem

nandini12396

nandini12396 commented on Jun 18, 2019

@nandini12396
Author

Any solution? Tried using older version also. Blocked completely!

Janain

Janain commented on Jun 18, 2019

@Janain

版本升级后,项目跑不起来了,sdk之前是26,今天项目跑不起来了 ,是因为androidx库,android.supoort不一致,是这个问题导致的吗,求赐教下????在线等!!急急急

mikehardy

mikehardy commented on Jun 18, 2019

@mikehardy
Collaborator

that's pretty odd - have you guys tried upgrading, we're on 2.1.2 now and the only version listed here is very old. We just pushed a release that limits the play services dependency to a pre-AndroidX version, as that may cause build breaks - 2.1.2 has that. The changes from 0.x.x to 1.x.x and from 1.x.x to 2.x.x are very easy to adapt to, nothing serious from a breaking change perspective

Janain

Janain commented on Jun 18, 2019

@Janain

After the version is upgraded, the project can't run. The sdk was 26 before. Today, the project can't run. It is because the androidx library and android.supoort are inconsistent. Is this caused by this problem? ? ? ? Online, etc.!

Janain

Janain commented on Jun 18, 2019

@Janain

You said that you just retired the previous version, but my project still can't run?

dandan6002

dandan6002 commented on Jun 18, 2019

@dandan6002

My project can't run up.

MikePodgorniy

MikePodgorniy commented on Jun 18, 2019

@MikePodgorniy

the very old "react-native-device-info": "0.24.0" is broke too

nandini12396

nandini12396 commented on Jun 18, 2019

@nandini12396
Author

same for me. I tried 2.1.2 as well as the version I was using before. Nothing is working. Tried gradle clean and build also.

Janain

Janain commented on Jun 18, 2019

@Janain

我也是

你是什么问题 ,项目能起来不

myshowject

myshowject commented on Jun 18, 2019

@myshowject

the very old"react-native-device-info": "^0.12.0" is broke too

tututututututu

tututututututu commented on Jun 18, 2019

@tututututututu

because compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
the googlePlayServicesVersion default is use "+" and com.google.android.gms:play-services-gcm update today and bringin androidX

add this code to your project build.gradle
solved
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 18
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion="15.0.1"
}

Janain

Janain commented on Jun 18, 2019

@Janain

将此代码添加到您的项目build.gradle
解决了
ext {
buildToolsVersion =“28.0.3”
minSdkVersion = 18
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion =“28.0.0”
googlePlayServicesVersion =“15.0.1”
}

那我只想把sdk依赖停留在26,所以这怎么破?
Then I just want to keep the sdk dependency at 26, so how is this broken?

22 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mikehardy@cheneywan@MikePodgorniy@GabeConsalter@2qiaoyu

        Issue actions

          ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font · Issue #694 · react-native-device-info/react-native-device-info