Я пытаюсь создать клиент Microsoft Sharepoint для списков. Для этого я использую библиотеку Office365 Services и API. Мои зависимости gradle выглядят так:
Во время Gradle-синхронизации происходит сбой с ошибкой:
Файл Gradle показывает ошибку мыши при:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).
Found versions 28.0.0-alpha1, 27.1.1. Examples include com.android.support:asynclayoutinflater:28.0.0-alpha1 and com.android.support:animated-vector-drawable:27.1.1 more. (Ctrl+F1)
Не уверен, какая библиотека конфликтует с какой. Любая помощь будет принята с благодарностью.
Warning:The android.dexOptions.incremental property is deprecated and it has no effect on the build process. /home/midhilaj/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/be3106efb0df111fe5a3f7b356dd070b/res/values/values.xml Error:(246, 5) error: resource android:attr/fontVariationSettings not found. /project/bkup/7_march_2018/hyshoper/milla/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml Error:(246, 5) error: resource android:attr/ttcIndex not found. Error:(269) resource android:attr/ttcIndex not found. Error:(269) resource android:attr/fontVariationSettings not found. Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:failed linking references. Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ‘:milla:processDebugAndroidTestResources’.
Failed to execute aapt Information:9 errors Information:BUILD FAILED in 2s Information:1 warning Information:See complete output in console
- Comments
- uendar commented Jun 24, 2019 •
- This comment has been minimized.
- react-native-bot commented Jun 24, 2019
- This comment has been minimized.
- ldco2016 commented Jun 24, 2019
- This comment has been minimized.
- HarshitMadhav commented Jun 25, 2019
- This comment has been minimized.
- javaDart commented Jun 26, 2019
- This comment has been minimized.
- HarshitMadhav commented Jun 27, 2019 •
- This comment has been minimized.
- shreyakupadhyay commented Jun 30, 2019 •
- This comment has been minimized.
- zoechen799 commented Jul 3, 2019
- This comment has been minimized.
- jitheshkt commented Jul 3, 2019
- This comment has been minimized.
- ldco2016 commented Jul 4, 2019
- This comment has been minimized.
- abartolo commented Jul 4, 2019
- This comment has been minimized.
- ldco2016 commented Jul 4, 2019
- This comment has been minimized.
- irajwani commented Jul 7, 2019
- This comment has been minimized.
- kitofers commented Jul 9, 2019
- This comment has been minimized.
- alvesmarcos commented Jul 9, 2019 •
- This comment has been minimized.
- ddxxtony commented Jul 23, 2019
- This comment has been minimized.
- seasafari commented Jul 27, 2019
- This comment has been minimized.
- stale bot commented Oct 25, 2019
Comments
Copy link Quote reply
uendar commented Jun 24, 2019 •
.gradlecaches ransforms-1files-1.1appcompat-v7-27.1.1.aar455673db66bf379c6b553212db86e77
esvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
.gradlecaches ransforms-1files-1.1appcompat-v7-27.1.1.aar455673db66bf379c6b553212db86e77
esvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found._
I am facing this issue.
Why does it happens. Any idea hot to solve this ?
This comment has been minimized.
Copy link Quote reply
react-native-bot commented Jun 24, 2019
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?
This comment has been minimized.
Copy link Quote reply
ldco2016 commented Jun 24, 2019
I am getting this issue as well when I run react-native run-android .
This comment has been minimized.
Copy link Quote reply
HarshitMadhav commented Jun 25, 2019
This comment has been minimized.
Copy link Quote reply
javaDart commented Jun 26, 2019
i’m also facing to this
This comment has been minimized.
Copy link Quote reply
HarshitMadhav commented Jun 27, 2019 •
In my case I changed this implementation project(‘:react-native-push-notification’) to compile project(‘:react-native-push-notification’)
and disabled the androidx implementation completely.
This comment has been minimized.
Copy link Quote reply
shreyakupadhyay commented Jun 30, 2019 •
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.
-
Check what all react native projects are supporting andro >
Search for androidX in the output. Get all the libraries having androidx.
2. Make a change in build.gradle inside android/app
These were the libraries that caused problem in my react native project.
Google maintains all the releases here https://developers.google.com/android/guides/releases#may_07_2019 . You can choose any other version also. This solution solved issue in my case. Let me know if this helps.
This comment has been minimized.
Copy link Quote reply
zoechen799 commented Jul 3, 2019
@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 。
This comment has been minimized.
Copy link Quote reply
jitheshkt commented Jul 3, 2019
IF your project is on SDK version 27 simply add googlePlayServicesVersion=12.0.1 on top of the android/gradle.properties file.
This comment has been minimized.
Copy link Quote reply
ldco2016 commented Jul 4, 2019
@shreyakupadhyay , what about if none of the put from running gradlew app:dependencies result in outputting anything to do with Androidx and yet I still get these errors?
This comment has been minimized.
Copy link Quote reply
abartolo commented Jul 4, 2019
@jitheshkt Thanks, I was able to get the build the release build! But now the app crashes when I open with the following error
This comment has been minimized.
Copy link Quote reply
ldco2016 commented Jul 4, 2019
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 AndroidManifest.xml file, I think, which looks like this:
This comment has been minimized.
Copy link Quote reply
irajwani commented Jul 7, 2019
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
/Users/imadrajwani/code/reactNative/nott/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:2368: error: resource android:attr/fontVariationSettings not found.
/Users/imadrajwani/code/reactNative/nott/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:2368: error: resource android:attr/ttcIndex not found.
error: failed linking references.
This comment has been minimized.
Copy link Quote reply
kitofers commented Jul 9, 2019
Thanks, this helped!
Here’s a couple others that I needed, that might be commonly used:
This comment has been minimized.
Copy link Quote reply
alvesmarcos commented Jul 9, 2019 •
@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!
This comment has been minimized.
Copy link Quote reply
ddxxtony commented Jul 23, 2019
IF your project is on SDK version 27 simply add googlePlayServicesVersion=12.0.1 on top of the android/gradle.properties file.
Thank you man, this resolved my problem,
This comment has been minimized.
Copy link Quote reply
seasafari commented Jul 27, 2019
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.
-
Check what all react native projects are supporting andro >
Search for androidX in the output. Get all the libraries having androidx.
2. Make a change in build.gradle inside android/app
These were the libraries that caused problem in my react native project.
Google maintains all the releases here https://developers.google.com/android/guides/releases#may_07_2019 . You can choose any other version also. This solution solved issue in my case. Let me know if this helps.
I would like to thankyou for this.
days of trying different things
This comment has been minimized.
Copy link Quote reply
stale bot commented Oct 25, 2019
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.