-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
resource android:attr/dialogCornerRadius not found. #4671
Comments
did you find any solution? |
I had a similar problem with AAPT2 which is disabled by default, what I did to fix my problem was just update react-native-navigation's I hope it helps |
I have the same problem too. Could you be a bit more specific on how to update react-native-vavigation gradle properties properly to the correct version ? Thanks for the help. |
Of course, I got into react-native-navigation's android folder ( android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
... In my project I've been using android sdk version 28. (If you don't know which version you are using just check your build.gradle inside your But note, if you run I'm using:
|
Try this:
Regards, Juan |
Setting compileSdkVersion to 28 solved it for me. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Solved my issue too. Thanks |
Solved my issue too. |
Thank you... thank you.... thaaaaaankkkkkk youuuuuuuuuuu :) |
Issue Description
Get error like the following when run
npm run android
[ENTER DESCRIPTION HERE]
FAILURE: Build failed with an exception.
Execution failed for task ':react-native-navigation:processReactNative51DebugAndroidTestResources'.
Command: user/java/gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/01679366724b6cc8d75f761ec8d23958/aapt2-3.2.1-4818971-osx/aapt2 link -I
user/Library/Android/sdk/platforms/android-26/android.jar
--manifest
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/merged_manifests/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestManifest/merged/AndroidManifest.xml
-o
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/processed_res/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestResources/out/resources-reactNative51DebugAndroidTest.ap_
-R
@PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/incremental/processReactNative51DebugAndroidTestResources/resources-list-for-resources-reactNative51DebugAndroidTest.ap_.txt
--auto-add-overlay
--java
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/generated/not_namespaced_r_class_sources/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestResources/r
-0
apk
--output-text-symbols
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/symbols/androidTest/reactNative51/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: user/Documents/java/gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/788639be9df739a4d85280dd2698b112/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/incremental/mergeReactNative51DebugAndroidTestResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
user/Documents/java/gradle/caches/transforms-1/files-1.1/design-26.1.0.aar/b2741e663f525b0147aac8cf2e40d225/res/values/values.xml:159:5-202: AAPT: error: resource android:attr/fontVariationSettings not found.
user/Documents/java/gradle/caches/transforms-1/files-1.1/design-26.1.0.aar/b2741e663f525b0147aac8cf2e40d225/res/values/values.xml:159:5-202: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: userjava/gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/01679366724b6cc8d75f761ec8d23958/aapt2-3.2.1-4818971-osx/aapt2 link -I
user/Library/Android/sdk/platforms/android-26/android.jar
--manifest
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/merged_manifests/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestManifest/merged/AndroidManifest.xml
-o
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/processed_res/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestResources/out/resources-reactNative51DebugAndroidTest.ap_
-R
@PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/incremental/processReactNative51DebugAndroidTestResources/resources-list-for-resources-reactNative51DebugAndroidTest.ap_.txt
--auto-add-overlay
--java
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/generated/not_namespaced_r_class_sources/reactNative51DebugAndroidTest/processReactNative51DebugAndroidTestResources/r
-0
apk
--output-text-symbols
PROJECT_ROOT/node_modules/react-native-navigation/lib/android/app/build/intermediates/symbols/androidTest/reactNative51/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Steps to Reproduce / Code Snippets / Screenshots
config : "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug"
https://wix.github.io/react-native-navigation/#/docs/Installing?id=android
npm run android
Environment
The text was updated successfully, but these errors were encountered: