react-native-device-info icon indicating copy to clipboard operation
react-native-device-info copied to clipboard

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

Open nandini12396 opened this issue 7 years ago • 34 comments

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",

nandini12396 avatar Jun 18 '19 06:06 nandini12396

我也遇到了就是今天

javascriptNode avatar Jun 18 '19 07:06 javascriptNode

我也遇到这个报错

myshowject avatar Jun 18 '19 07:06 myshowject

The same problem

cheneywan avatar Jun 18 '19 07:06 cheneywan

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

nandini12396 avatar Jun 18 '19 07:06 nandini12396

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

Janain avatar Jun 18 '19 07:06 Janain

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

mikehardy avatar Jun 18 '19 07:06 mikehardy

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 avatar Jun 18 '19 07:06 Janain

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

Janain avatar Jun 18 '19 07:06 Janain

My project can't run up.

dandan6002 avatar Jun 18 '19 07:06 dandan6002

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

MikePodgorniy avatar Jun 18 '19 08:06 MikePodgorniy

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.

nandini12396 avatar Jun 18 '19 08:06 nandini12396

我也是

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

Janain avatar Jun 18 '19 08:06 Janain

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

myshowject avatar Jun 18 '19 08:06 myshowject

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" }

tututututututu avatar Jun 18 '19 08:06 tututututututu

将此代码添加到您的项目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?

Janain avatar Jun 18 '19 08:06 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?

重点是这句:googlePlayServicesVersion =“15.0.1”

ctysc2 avatar Jun 18 '19 08:06 ctysc2

将此代码添加到您的项目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?

just add googlePlayServicesVersion="15.0.1"

tututututututu avatar Jun 18 '19 08:06 tututututututu

THINKS!@tututututututu node_modules/react-native-device-info/android/build.gradle def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "15.0.1"

why not define ext googlePlayServicesVersion to your project build.gradle are you maintenance by your self?

tututututututu avatar Jun 18 '19 08:06 tututututututu

谢谢 已解决

Janain avatar Jun 18 '19 08:06 Janain

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" }

thank you!

dandan6002 avatar Jun 18 '19 08:06 dandan6002