ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
Bug
I am getting the following errors:
ERROR: In
: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",
我也遇到了就是今天
我也遇到这个报错
The same problem
Any solution? Tried using older version also. Blocked completely!
版本升级后,项目跑不起来了,sdk之前是26,今天项目跑不起来了 ,是因为androidx库,android.supoort不一致,是这个问题导致的吗,求赐教下????在线等!!急急急
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
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.!
You said that you just retired the previous version, but my project still can't run?
My project can't run up.
the very old "react-native-device-info": "0.24.0" is broke too
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.
我也是
你是什么问题 ,项目能起来不
the very old"react-native-device-info": "^0.12.0" is broke too
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" }
将此代码添加到您的项目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?
将此代码添加到您的项目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”
将此代码添加到您的项目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"
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?
谢谢 已解决
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!